Re: [PHP] php email functionality
Shawn Beard wrote: I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? A few ideas/suggestions : Does your smtp server require authentication before sending? If so, the default mail() function in PHP can't handle SMTP authentication. Could be that it changed since your upgrade. Does turning up the error_reporting level (E_ALL) print any warnings/notices? Can you ping the smtp server from your web server? Do other (non-PHP) mail applications work? Can you send mail using the same smtp server from a mail client running from the webserver? Is it possible to scan the logs of the smtp server to see what is going on? Hopefully these can lead you in the right direction. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Configuration Variable user_agent
Bernhard Kraft wrote: Hallo ! I run PHP 4.1.2. I want to set the user_agent which gets sent along when fetching file via the fopen(...) call. Normally this is "PHP/VERISON" in my case "PHP/4.1.2" I want to set a different user_agent. I *believe* you can set this via header(), but its still early here. A sure-fire way to find out is to see how snoopy (snoopy.sf.net) does it. -- Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Relative Url
I'm using this on Apache. You need to include 'inc/globals.php' in your script. inc/globals.php define('RELPATH', GetRelativePath()); ?> inc/functions.php function GetRelativePath() { $RELPATH = str_replace(UpDirectory(__FILE__), '', dir_name($_SERVER['SCRIPT_NAME])); $RELPATH = substr_count($RELPATH, '/'); if ( $RELPATH>0 ) $RELPATH = str_repeat('../', $RELPATH); else $RELPATH = '/'; return ConvertSlashes($RELPATH); } function UpDirectory($directory, $level=1) { while ( $level-- > 0 ) $directory = dirname(dirname($directory)); return ConvertSlashes($directory); } function ConvertSlashes($st) { $st = str_replace('', '/', $st); $st = str_replace('\\', '/', $st); return $st; } function dir_name($directory) { return ConvertSlashes(dirname($directory)); } Chris Thomas wrote: Is there anyway that i can get a url relative to my server for a script that is being run?? The script is being included in mulitple files and $_SERVER['SCRIPT_NAME'] just gives me the name of the file that is including the other scripts. Also $_SERVER['SCRIPT_FILENAME'] is returning nothing. Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache version... 1.3.29 vs 2.0.
On Saturday 03 April 2004 01:28, Chris Shiflett wrote: > --- Frano ILICIC <[EMAIL PROTECTED]> wrote: > > I just wonder what is the best apache version to run PHP 4.35? > > Just wondering if there is an obvious choice? > > Maybe not obvious, but I think the best choice is the latest Apache 1.3.x. But presumably one still has to wait for PHP 4.35 to be released ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Nothing is as simple as it seems at first Or as hopeless as it seems in the middle Or as finished as it seems in the end. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I can't view files uploaded with PHP
On Saturday 03 April 2004 03:04, Linux Zero wrote: > I write some PHP scripts for a system's module that allows the user to > upload a file from his computer to the host. It works fine in a server with > Linux Apache MySQL PHP (LAMP) environment. I based on the examples of > this page: > > http://www.php.net/manual/en/features.file-upload.php > > Las week we transfer the whole system to another server with the same > environment, but now the uploaded files can't be viewed in the browser. > That's because the file is uploaded with 640 permissions and can't be > opened by the browser with a wwwrun user. > > We check in the old server and find that these uploaded files with 644 > permissions. I check the httpd.conf and php.ini files looking for something > like a umask option, but I find nothing like that. umask() and/or chmod() However it is odd, files uploaded via HTTP should be owned by the "webserver", which in your case ought to be 'wwwrun'? What is the user that the webserver is running under and who is the owner of the uploaded files? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Your temporary financial embarrassment will be relieved in a surprising manner. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php email functionality
On Saturday 03 April 2004 00:59, Shawn Beard wrote: > I just tried downgrading to version 4.3.4 and it still does not work. And presumably it had worked before you did the upgrade? The tone of your original post suggested that the upgrade broke the mail functionality? Again: > Are you positive you have made no other changes to your setup whilst > upgrading php? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Murphy's Law is recursive. Washing your car to make it rain doesn't work. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem sending with mail()
On Saturday 03 April 2004 03:35, Matt MacLeod wrote: > I'm stumped. I have a script to send a simple email using the mail() > function in PHP. > > For some reason I can only receive the email if I send it to my hotmail > account. If I send to my regular email ([EMAIL PROTECTED]) I can't get > it. I've also tried sending to other non-hotmail addresses with no > luck. What does the php error logs say? And your mail logs? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* If the human brain were so simple that we could understand it, we would be so simple we couldn't. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Global $_FILEs
On Saturday 03 April 2004 05:50, Bruno Santos wrote: > i've tried to pass the global array $_FILES to a function $_FILES is a superglobal and hence available everywhere (including the inside of functions) without any work on your part. > but still no sucess... Please elaborate. > can someone help me ?? Only if you can provide some details: 1) State what you're trying to do 2) Show the code that you're using 3) State what you expect the code to do 4) State what the code is actually doing If (3) and (4) are different then: i) Enable full error reporting and study any error messages you get ii) Use print_r() and var_dump() to examine all your variables. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* A king's castle is his home. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: $this variable reference question
Jason, thanks. Yes, I understand your example here very well. My question actually had more to do with understanding what value was added to the class by "$myref = &$this;". Perhaps it is some misunderstanding I have of classes but, since a class is just a pattern and not an actual, usable object in and of itself, what is the value in equating a member variable with the class. Almost seems recursive. Even though $myref is set to "global" it is still a member variable, right? Does "$this" refer to the class pattern or is it creating an object of itself inside the class, sort of an object inside an object? I guess my problem in understanding this is not so much where this sort of coding should be used but rather what is really going on here. Thanks again! -Adam Reiswig Jason Barnett wrote: It's not the same thing. When an variable references an object then you can change either the original object or the new variable and you will be changing the *same* object, not a new one. Maybe this example helps? class test { function test($val) { global $myref; $myref = &$this; $this->value = $val; } function printval() { echo "The value of this class is '{$this->value}' "; } function setval($val) { $this->value = $val; } } $a = new test(); $b = &$a; $c = new test(); $a->setval(22); $b->setval(321); $c->setval('A weird comment'); $a->printval(); // should see 321 $b->printval(); // should see 321 $c->printval(); // should see A weird comment ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Session hell: register_globals off
Randall Perry wrote: on 4/2/04 8:24 PM, Jason Barnett at [EMAIL PROTECTED] wrote: Are you passing the session id between the pages? E.g. are you setting session cookies, or passing the session id as part of the url? Doesn't php default to using cookies? I'm not doing anything other than using the code I showed. Hmmm, I misunderstood the problem... OK, just try this and see if the session is starting and any errors starting it: error_reporting(E_ALL); if (session_start()) { echo "Session started"; } else { echo "No session"; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to retrieve dir file list from an internet server folder?
Yes, you'll need to parse the output of the page. "Dave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it possible to retrieve dir file list from an internet server folder from > within a php program? > > In the browser, the http:// page displays "Index of" and a list of files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] opening cash register drawer
On Fri, 2004-04-02 at 20:40, Raditha Dissanayake wrote: > Leonard B Burton wrote: > > >Greetings, > > > >I am working on a Point of Sale Program for PHP. I need to find out how to open a > >cash register drawer. Could anyone give me any info? Do I need to do this with a > >javascript section? > > > > > You will be hard pressed to do anything like this with php. the reason > is that php is designed primarily as a language for building web > applications. Not at all suitable for desktop applications or smart > devices. Hardware control certainly is not recommended. > > Having said all that if you have a C library that handles the > functionality you can invoke it's methods via php. Or a command line interface that can be invoked with exec, or system, or backticks :) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] opening cash register drawer
Leonard B Burton wrote: I am working on a Point of Sale Program for PHP. I need to find out how to open a cash register drawer. Could anyone give me any info? Do I need to do this with a javascript section? Uhmm... I to am interested in PHP scripts that open cash register drawers. Yeah... can you, ah, let me know what you find out?? John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Session hell: register_globals off
on 4/2/04 8:24 PM, Jason Barnett at [EMAIL PROTECTED] wrote: > > Are you passing the session id between the pages? E.g. are you setting > session cookies, or passing the session id as part of the url? Doesn't php default to using cookies? I'm not doing anything other than using the code I showed. > page 1 > __ > > // include class definition file > include_once "order_classes.php"; > // start session > session_start(); > // create instance of class Order > $order = New Order(); > // assign class instance to $SESSION[] > $_SESSION['order'] = $order; > > page 2 > __ > > // include class definition file > include_once "order_classes.php"; > // start session > session_start(); > // assign $_SESSION['order'] object to variable > $order = $_SESSION['order']; -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] opening cash register drawer
Leonard B Burton wrote: Greetings, I am working on a Point of Sale Program for PHP. I need to find out how to open a cash register drawer. Could anyone give me any info? Do I need to do this with a javascript section? You will be hard pressed to do anything like this with php. the reason is that php is designed primarily as a language for building web applications. Not at all suitable for desktop applications or smart devices. Hardware control certainly is not recommended. Having said all that if you have a C library that handles the functionality you can invoke it's methods via php. Thanks, Leonard Burton -- Raditha Dissanayake. - http://www.radinks.com/print/upload.php SFTP, FTP and HTTP File Upload solutions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: opening cash register drawer
You probably need to check out OPOS, but I haven't looked at it in a while and can't really tell you what to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Why does session ID sometimes show appeneded to url and sometimes not?
Boot wrote: Thanks to those who helped with my last post on session vars. My question now is why does my server seem to randomly choose whether or not to show the session ID appended to the browser URL? Sometimes it is there, sometimes not. All pages session_start();. Thanks! Check your browser's cookies... do you have the session id there? If so then you don't need to append the id as part of the url. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Session hell: register_globals off
page 1 __ // include class definition file include_once "order_classes.php"; // start session session_start(); // create instance of class Order $order = New Order(); // assign class instance to $SESSION[] $_SESSION['order'] = $order; page 2 __ // include class definition file include_once "order_classes.php"; // start session session_start(); // assign $_SESSION['order'] object to variable $order = $_SESSION['order']; I'm getting the following error when page 2 loads: [error] PHP Notice: Undefined variable: _SESSION Any ideas? Are you passing the session id between the pages? E.g. are you setting session cookies, or passing the session id as part of the url? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $this variable reference question
My question is actually regarding the line "$myref = &$this;". The author states that this is a reference to the class/object itself. Isn't this like saying outside the class "$myref =& new test;"? What would be the point of referring to itself inside the class in this manner? Thanks for your help in advance! -Adam Reiswig The exact class that the author wrote isn't too useful, although it makes its point well. However, a reference to $this inside a class can be useful, for example, if you were using the observer pattern. http://www.phppatterns.com/index.php/article/articleview/27/1/1/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $this variable reference question
It's not the same thing. When an variable references an object then you can change either the original object or the new variable and you will be changing the *same* object, not a new one. Maybe this example helps? class test { function test($val) { global $myref; $myref = &$this; $this->value = $val; } function printval() { echo "The value of this class is '{$this->value}' "; } function setval($val) { $this->value = $val; } } $a = new test(); $b = &$a; $c = new test(); $a->setval(22); $b->setval(321); $c->setval('A weird comment'); $a->printval(); // should see 321 $b->printval(); // should see 321 $c->printval(); // should see A weird comment ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Directories function opendir() - how to open an URL
* Thus wrote Dave ([EMAIL PROTECTED]): > > Is http:// URL wrapper support included in PHP 4.3.4 ? > or is this included in PHP 5.0.0? I wouldn't expect the http wrapper to ever support opendir functionality. Its virtually impossilble to read directoy listings from a web server. > > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > * Thus wrote Dave ([EMAIL PROTECTED]): > > > The Directories function opendir(string path) > > > As of PHP 4.3.0 path can also be any URL which supports directory > listing > > > > , however only the file:// URL wrapper supports this in PHP 4.3. As > > of PHP 5.0.0, support for the ftp:// URL wrapper is included as > > well. > > > > > > Curt > > -- > > "I used to think I was indecisive, but now I'm not so sure." > Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] opening cash register drawer
Greetings, I am working on a Point of Sale Program for PHP. I need to find out how to open a cash register drawer. Could anyone give me any info? Do I need to do this with a javascript section? Thanks, Leonard Burton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Directories function opendir() - how to open an URL
Is http:// URL wrapper support included in PHP 4.3.4 ? or is this included in PHP 5.0.0? "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Dave ([EMAIL PROTECTED]): > > The Directories function opendir(string path) > > As of PHP 4.3.0 path can also be any URL which supports directory listing > > , however only the file:// URL wrapper supports this in PHP 4.3. As > of PHP 5.0.0, support for the ftp:// URL wrapper is included as > well. > > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: problem about php
the browser always shows like this: Fatal error: Call to undefined function: domxml_open_mem() in c:\apache\htdocs\svg_dom_xml_php_bsp.php on line 76. What is wrong here? In php 4 the dom xml extension is NOT loaded by default. So you can't just call these functions until you load the extension. http://us2.php.net/domxml I also looked through the web site www.php.net. But I was confused with so much information.Should I download GNOME XML library? Should domxml run only under linux, not windows?Should domxml run above the version php4.0.x? If possible under windows, how can I get the GNOME XML library and then how to install it? At last,how can I configurate php again after installing it? Windows users don't need the GNOME library for domxml, and I wouldn't recommend building it yourself. However, depending on your version of php you need to have a file in your include path. Directly from the manual: Note to Win32 Users: In order to enable this module on a Windows environment, you must copy one additional file from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your Windows machine (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). For PHP <= 4.2.0 copy libxml2.dll, for PHP >= 4.3.0 copy iconv.dll from the DLL folder to your SYSTEM32 folder. For windows 98, I think you can put the relevant file into C:\WINDOWS\SYSTEM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Directories function opendir() - how to open an URL
* Thus wrote Dave ([EMAIL PROTECTED]): > The Directories function opendir(string path) > As of PHP 4.3.0 path can also be any URL which supports directory listing , however only the file:// URL wrapper supports this in PHP 4.3. As of PHP 5.0.0, support for the ftp:// URL wrapper is included as well. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Directories function opendir() - how to open an URL
The Directories function opendir(string path) As of PHP 4.3.0 path can also be any URL which supports directory listing This returns false eventhough the URL supports directory listing? opendir (http://www.fu.bar/images/); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $this variable reference question
I was trying to bend my mind around the concept of the reference operator (&) today and came across an article at http://www.onlamp.com/pub/a/php/2002/09/12/php_foundations.html where the author gave the following example: value = $val; } function printval() { echo "The value of this class is '{$this->value}' "; } function setval($val) { $this->value = $val; } } ?> My question is actually regarding the line "$myref = &$this;". The author states that this is a reference to the class/object itself. Isn't this like saying outside the class "$myref =& new test;"? What would be the point of referring to itself inside the class in this manner? Thanks for your help in advance! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
Monty wrote: Thanks Red, but, still the same problem: $id = 11; $id2 = preg_replace("/^0+(.*)$/","\\1",$id); echo $id2; // Displays 9 echo $id; // Displays 9 as well. If the number begins with a zero, there seems to be no way to tell PHP this is an integer, not an octal. The conversion happens as soon as the number is stored in the variable, it appears, which is why everything done afterwards makes no difference, because $id=11; seems to be stored as $id=>9 by PHP. 011 and 9 are the exact same number, but represented in different bases! Maybe this is the concept you're not grasping. When you say $id = 11, then you're telling PHP to assign the value of 9 to $id, plain and simple. Can we take a step back here and ask where you're getting "11" from? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
Red Wingate wrote: ever tryed telling PHP to display the variable as an integer? echo (integer) $id ; Ever "tryed" realizing 0x09, 011, and 9 are all integers (just different bases)? ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
* Thus wrote Monty ([EMAIL PROTECTED]): > I tried removing the zeros, but, I get the same result: > > $id = 11; > $id = ltrim($id, '0'); > echo $id; // Displays: 9 instead of 11 ??? > > This didn't work either: > > $id = 11; > settype($id, 'string'); > $id = ltrim($id, '0'); > echo $id; // Displays: 9 instead of 11 ??? This is expected, $id becomes 9 as soon as you assign it. the ltrim() function's dont see any 0. this will work however: $id = "011"; echo (int)$id; - or $id = "011"; echo ltrim($id, '0'); > No matter what I do, $id=11 is seen as "9". Only way is to pass the > number without the zeros ($id=11), but, because this data is being read from > a database, I can't change the format because PHP seems to be converting it > immediately to a 9 instead of reading it as 11 or even 11. This shouldn't be happening. A variable that contains a value of '11' will not be seen as on octal value. > > If PHP sees this as an octal, then why does gettype(11) = INTEGER? This > makes no sense. Thats because 11 is an integer in octal notation. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
* Thus wrote Daniel Clark ([EMAIL PROTECTED]): > Found this: > > $a = 1234; # decimal number > $a = -123; # a negative number > $a = 0123; # octal number (equivalent to 83 decimal) > $a = 0x1A; # hexadecimal number (equivalent to 26 decimal) $a is integer in all these cases, the only difference is the last two are set using different base notation. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
Found this: $a = 1234; # decimal number $a = -123; # a negative number $a = 0123; # octal number (equivalent to 83 decimal) $a = 0x1A; # hexadecimal number (equivalent to 26 decimal) http://www.phpbuilder.com/manual/language.types.integer.php#language.types.integer.casting > hm > > ever tryed telling PHP to display the variable as an integer? > > echo (integer) $id ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
hm ever tryed telling PHP to display the variable as an integer? echo (integer) $id ; -- red Daniel Clark wrote: Doesn't putting and x11 tell PHP it's a decimal format? $id = 11; $id2 = preg_replace("/^0+(.*)$/","\\1",$id); echo $id2; // Displays 9 echo $id; // Displays 9 as well. If the number begins with a zero, there seems to be no way to tell PHP this is an integer, not an octal. The conversion happens as soon as the number is stored in the variable, it appears, which is why everything done afterwards makes no difference, because $id=11; seems to be stored as $id=>9 by PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
Doesn't putting and x11 tell PHP it's a decimal format? > $id = 11; > $id2 = preg_replace("/^0+(.*)$/","\\1",$id); > > echo $id2; // Displays 9 > echo $id; // Displays 9 as well. > > If the number begins with a zero, there seems to be no way to tell PHP > this > is an integer, not an octal. The conversion happens as soon as the number > is > stored in the variable, it appears, which is why everything done > afterwards > makes no difference, because $id=11; seems to be stored as $id=>9 by > PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
Thanks Red, but, still the same problem: $id = 11; $id2 = preg_replace("/^0+(.*)$/","\\1",$id); echo $id2; // Displays 9 echo $id; // Displays 9 as well. If the number begins with a zero, there seems to be no way to tell PHP this is an integer, not an octal. The conversion happens as soon as the number is stored in the variable, it appears, which is why everything done afterwards makes no difference, because $id=11; seems to be stored as $id=>9 by PHP. > From: [EMAIL PROTECTED] (Red Wingate) > Organization: ErisX Development > Reply-To: [EMAIL PROTECTED] > Newsgroups: php.general > Date: Sat, 03 Apr 2004 00:01:43 +0200 > To: [EMAIL PROTECTED] > Cc: Monty <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: [PHP] Strange Numeric Conversion... > > sry... it's \\1 instead of //1 ... guess i had one to many beers :) > > Red Wingate wrote: > >> trim will not work, try something like: >> >> $id = preg_replace("/^0+(.*)$/","//1",$id); >> >> instead >> >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session hell: register_globals off
Had a previous thread on this issue. Started working on it again and am running into new bugs, so thought I'd start a new thread. Read thoroughly through session examples in docs and here's how I tried to pass an object from one page to another: page 1 __ // include class definition file include_once "order_classes.php"; // start session session_start(); // create instance of class Order $order = New Order(); // assign class instance to $SESSION[] $_SESSION['order'] = $order; page 2 __ // include class definition file include_once "order_classes.php"; // start session session_start(); // assign $_SESSION['order'] object to variable $order = $_SESSION['order']; I'm getting the following error when page 2 loads: [error] PHP Notice: Undefined variable: _SESSION Any ideas? Pertinent PHP vars: ___ Darwin systame.cniweb.net 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh Build Date Apr 2 2004 12:58:17 Configure Command './configure' '--with-apxs=/usr/sbin/apxs' '--with-pgsql' '--with-xml' '--with-openssl=/usr/local/ssl' '--with-pear' '--with-curl=/usr/lib' Apache/1.3.29 (Darwin) DAV/1.0.3 mod_perl/1.29 PHP/4.3.5 mod_jk/1.2.4 mod_ssl/2.8.16 OpenSSL/0.9.7c register_globalsOff Off -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
This way works fine!! Thank you very much. -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Image output (Newb question) you should have script, call it image.php or something like that, the only thing that should be in that script is this: no html tags in there, no whitespace. to see the image you could call the page like this http://www.yourdomain.whatever/image.php . you could call it in a iumage tag like this http://www.yourdomain.whatever/image.php"; /> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
you should have script, call it image.php or something like that, the only thing that should be in that script is this: no html tags in there, no whitespace. to see the image you could call the page like this http://www.yourdomain.whatever/image.php . you could call it in a iumage tag like this http://www.yourdomain.whatever/image.php"; /> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
sry... it's \\1 instead of //1 ... guess i had one to many beers :) Red Wingate wrote: trim will not work, try something like: $id = preg_replace("/^0+(.*)$/","//1",$id); instead Monty wrote: I tried removing the zeros, but, I get the same result: $id = 11; $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? This didn't work either: $id = 11; settype($id, 'string'); $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? No matter what I do, $id=11 is seen as "9". Only way is to pass the number without the zeros ($id=11), but, because this data is being read from a database, I can't change the format because PHP seems to be converting it immediately to a 9 instead of reading it as 11 or even 11. If PHP sees this as an octal, then why does gettype(11) = INTEGER? This makes no sense. Monty. From: [EMAIL PROTECTED] (Jay Blanchard) Newsgroups: php.general Date: Fri, 2 Apr 2004 15:38:03 -0600 To: "Monty" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: [PHP] Strange Numeric Conversion... [snip] Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? [/snip] First of all you have "naked" numbers. The first one, 11, looks like a binary number (which actually should be 3). You are going to have to trim the leading zero's from the number to have it display as 11. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
trim will not work, try something like: $id = preg_replace("/^0+(.*)$/","//1",$id); instead Monty wrote: I tried removing the zeros, but, I get the same result: $id = 11; $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? This didn't work either: $id = 11; settype($id, 'string'); $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? No matter what I do, $id=11 is seen as "9". Only way is to pass the number without the zeros ($id=11), but, because this data is being read from a database, I can't change the format because PHP seems to be converting it immediately to a 9 instead of reading it as 11 or even 11. If PHP sees this as an octal, then why does gettype(11) = INTEGER? This makes no sense. Monty. From: [EMAIL PROTECTED] (Jay Blanchard) Newsgroups: php.general Date: Fri, 2 Apr 2004 15:38:03 -0600 To: "Monty" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: [PHP] Strange Numeric Conversion... [snip] Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? [/snip] First of all you have "naked" numbers. The first one, 11, looks like a binary number (which actually should be 3). You are going to have to trim the leading zero's from the number to have it display as 11. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Global $_FILEs
give us some more info how do you 'pass' the array to your function, remeber $_FILES is a super-global array in is available in the functions scoope as well. -- red Bruno Santos wrote: Hello all. I'm developing a script that requires the user to upload 2 files. i want to put all the lines that takes care of the uploading of the file in a function. i've tried to pass the global array $_FILES to a function, but still no sucess... can someone help me ?? regards Bruno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image output (Newb question)
use the output-buffer functions ( ob_start() ... etc.. ) but if you want to display an image you need to only display a image by your image or save it to a file and view it using the html tag. Fidencio Monroy wrote: Np, but I do not understand: Do should I remove all the html tags before the script? (I used your format in last script with the same result) Thanks -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:35 PM To: Matt Matijevich; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Image output (Newb question) Sorry for responding to myself but I also need to ad that you should not echo or print anything out in your php code before your header function or the text/html header will be sent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
I tried removing the zeros, but, I get the same result: $id = 11; $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? This didn't work either: $id = 11; settype($id, 'string'); $id = ltrim($id, '0'); echo $id; // Displays: 9 instead of 11 ??? No matter what I do, $id=11 is seen as "9". Only way is to pass the number without the zeros ($id=11), but, because this data is being read from a database, I can't change the format because PHP seems to be converting it immediately to a 9 instead of reading it as 11 or even 11. If PHP sees this as an octal, then why does gettype(11) = INTEGER? This makes no sense. Monty. > From: [EMAIL PROTECTED] (Jay Blanchard) > Newsgroups: php.general > Date: Fri, 2 Apr 2004 15:38:03 -0600 > To: "Monty" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Subject: RE: [PHP] Strange Numeric Conversion... > > [snip] > Why is this happening??? > > $id = 11; > echo $id; // Displays: 9 > > $id = 11; > echo $id; // Displays: 11 > > How do I make the first number (00011) display as 11? Why is it showing > 9? > [/snip] > > First of all you have "naked" numbers. The first one, 11, looks like > a binary number (which actually should be 3). You are going to have to > trim the leading zero's from the number to have it display as 11. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Global $_FILEs
Hello all. I'm developing a script that requires the user to upload 2 files. i want to put all the lines that takes care of the uploading of the file in a function. i've tried to pass the global array $_FILES to a function, but still no sucess... can someone help me ?? regards Bruno -- - .-'-. .' `. : : : : : _/| : Bruno Santos : =/_/ : [EMAIL PROTECTED] `._/ | .' ( / ,|...-'Pagina Pessoal \_/^\/||__ http://feiticeir0.no-ip.org _/~ `""~`"` \_ __/ -'/ `-._ `\_\__ /jgs /-'` `\ \ \-.\ "Written very small on the back poket of a girl's jeans - 'If you can read this, you're WAY too close.'" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
Np, but I do not understand: Do should I remove all the html tags before the script? (I used your format in last script with the same result) Thanks -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:35 PM To: Matt Matijevich; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Image output (Newb question) Sorry for responding to myself but I also need to ad that you should not echo or print anything out in your php code before your header function or the text/html header will be sent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
Wow, thanks John ! > Number values starting with a leading zero are assumed to be octal values. > > Octal 11 = Decimal 9 > > ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Strange Numeric Conversion...
[snip] "naked" [/snip] Dang John, I guess I don't think octally any more! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Strange Numeric Conversion...
[snip] Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? [/snip] First of all you have "naked" numbers. The first one, 11, looks like a binary number (which actually should be 3). You are going to have to trim the leading zero's from the number to have it display as 11. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Numeric Conversion...
From: "Monty" <[EMAIL PROTECTED]> > $id = 11; > echo $id; // Displays: 9 > > $id = 11; > echo $id; // Displays: 11 > > How do I make the first number (00011) display as 11? Why is it showing 9? Number values starting with a leading zero are assumed to be octal values. Octal 11 = Decimal 9 ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
Sorry for responding to myself but I also need to ad that you should not echo or print anything out in your php code before your header function or the text/html header will be sent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
change your script to just this: Don't have any white space before http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Why does session ID sometimes show appeneded to url and sometimes not?
Thanks to those who helped with my last post on session vars. My question now is why does my server seem to randomly choose whether or not to show the session ID appended to the browser URL? Sometimes it is there, sometimes not. All pages session_start();. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange Numeric Conversion...
Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? Thanks. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] control panel--graphic question
On 02-Apr-2004 Leonard B Burton wrote: > Greetings, > > This is more of a graphic question > > For a program I am writting I need to have a control panel to display > anything that may be wrong. I would like to use something like a > stoplight so that it would be easily understood by a lay person. > Does anyone have any comments as to what they have used? Also does > anyone have a function/graphic that would be a stop light and > changing the var would make it either show red, green, or yellow? > function stoplight($val) { $light = array( 'ok'=> 'images/green.jpg', 'iffy' => 'images/yellow.jpg', 'bad' => 'images/red.jpg' ); echo ''; } ... stoplight( $foo < 10 ? 'ok' : $foo > 25 ? 'bad' : 'iffy' ); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Displaying a money datatype from mssql - Solution
This is a bug in php 4.3.5 and it's fixed in the upcomming 4.3.6 release. - Frank > Recap: > In the query I had; > SELECT totalamount > > And it was returning; > Total Amount > 5.41108926696E-309 > > I tried to modify the query to; > SELECT cast(totalamount as decimal(10,2)) as totalamount > > And php gave me an error; > Undefined Index at line (x); > > When I tried to use 'number_format($totalamount,2)' it returned; > Total Amount > 0.00 > > Solution: > The solution was in the query; > SELECT cast(totalamount as numeric(10,2)) as totalamount > > This returns the proper formatting; > Total Amount > 123.50 > > > > alex hogan > > > ** > The contents of this e-mail and any files transmitted with it are > confidential and intended solely for the use of the individual or > entity to whom it is addressed. The views stated herein do not > necessarily represent the view of the company. If you are not the > intended recipient of this e-mail you may not copy, forward, > disclose, or otherwise use it or any part of it in any form > whatsoever. If you have received this e-mail in error please > e-mail the sender. > ** > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
This is the entire html doc http://www.w3.org/TR/html4/loose.dtd";> Untitled Document -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 12:49 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Image output (Newb question) could you post all of your script? Is there any white space before your http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php email functionality
I figured it out. I needed the send_mail_from in the php.ini set up with a valid email. This is a requirement on a windows server. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> Manuel Lemos <[EMAIL PROTECTED]> 04/02/04 02:55PM >>> Hello, On 04/02/2004 12:10 PM, Shawn Beard wrote: > I just upgraded to PHP 4.3.5 and now my email functionality does not > work. I do have the SMTP setting in the php.ini set up and did > restart Apache. We are running a Windows 2000 server and Apache > 2.0.49. Any ideas? It can be a problem with many things including something not to due with PHP. Anyway, to figure if the problem is with PHP or not, you may want to try this class that comes with wrapper function named smtp_mail() that emulates the mail() function but sends the message directly to SMTP server of your choice: http://www.phpclasses.org/mimemessage You also need this to send messages via SMTP. http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php email functionality
Hello, On 04/02/2004 12:10 PM, Shawn Beard wrote: I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? It can be a problem with many things including something not to due with PHP. Anyway, to figure if the problem is with PHP or not, you may want to try this class that comes with wrapper function named smtp_mail() that emulates the mail() function but sends the message directly to SMTP server of your choice: http://www.phpclasses.org/mimemessage You also need this to send messages via SMTP. http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
could you post all of your script? Is there any white space before your http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Problem sending with mail()
Hello, On 04/02/2004 04:35 PM, Matt Macleod wrote: I'm stumped. I have a script to send a simple email using the mail() function in PHP. For some reason I can only receive the email if I send it to my hotmail account. If I send to my regular email ([EMAIL PROTECTED]) I can't get it. I've also tried sending to other non-hotmail addresses with no luck. any ideas? Without further information it is hard to help you. Anyway, the PHP mail() function has problems in some circunstances. You may want to try this class that provides workarounds to some of the mail function problems. It comes with a wrapper function named smtp_mail() that emulates the mail() function except that it always sends the message via STMP independently of your platform. You can enable debugging to see the SMTP dialog and so you can have a clue if the message is reject or accepted by the SMTP server you are using. If you do not have SMTP server to relay the message, you can always try to use the class direct delivery mode. http://www.phpclasses.org/mimemessage You will also need this other class: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image output (Newb question)
Ok, this warning is generated and the same output Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache\htdocs\map.php:9) Thanks. -Original Message- From: Dave Avent [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:58 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Image output (Newb question) Header ("Content-type: image/png"); $im = imagecreatefrompng("images/map.png"); imagepng($im); ImageDestroy ($im); -Original Message- From: Fidencio Monroy [mailto:[EMAIL PROTECTED] Sent: 02 April 2004 10:55 AM To: (PHP General List) Subject: [PHP] Image output (Newb question) Hi, I need to display some PNG pictures in a script; from help I got $im = imagecreatefrompng("images/map.png"); imagepng($im); It outputs the binary data as a string, kind of trash; what do I need to set to tell the browser how to interpret it? Thanks. Fidencio Monroy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 nothappy together?
Strange, it was working on a beta version... I guess I'll just wait for a bit and see what's up... "William Lovaton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I don't think Zend Optimizer can work with PHP 5 by the moment. > > > El vie, 02-04-2004 a las 01:28, Elisamuel Resto escribió: > > I've installed Apache and PHP5 RC1 fine, added my needed modules fine, then > > I installed Zend Optimizer 2.5.1 and it doesn't load? phpinfo() doesn't show > > it as loaded. php.ini is in the correct place and PHP is reading it. php.ini > > has the Zend Optimizer lines at the bottom as added by the installer. > > > > What to do? > > > > Regards, > > Samuel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem about php
Dear Sir/Madam, These days I am studying php, however, there are always problems of configuration with php under windows 98. Could you tell me how to configurate it in detail. In perticurly,when I deal with some codes about domxml function, the browser always shows like this: Fatal error: Call to undefined function: domxml_open_mem() in c:\apache\htdocs\svg_dom_xml_php_bsp.php on line 76. What is wrong here? I also looked through the web site www.php.net. But I was confused with so much information.Should I download GNOME XML library? Should domxml run only under linux, not windows?Should domxml run above the version php4.0.x? If possible under windows, how can I get the GNOME XML library and then how to install it? At last,how can I configurate php again after installing it? Do you know the software phptraid-2.2.1? After installing it, I can do nothing about the configuration? And, which version of php is in this phptraid? Thanks for your reading my mail. Best regards, Lu Wang - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today
Re: [PHP] code design? modular?
hmmm was wrong there ... it's http://php.net/manual/en/functions.php Red Wingate wrote: http://php.net/function :-) Andy B wrote: is it ok practice to put code like the code to put results from an mysql query into a combo box into an include file and then just include it wherever its needed? the code i can see would have to be used at least 5 times in the same page -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] code design? modular?
http://php.net/function :-) Andy B wrote: is it ok practice to put code like the code to put results from an mysql query into a combo box into an include file and then just include it wherever its needed? the code i can see would have to be used at least 5 times in the same page -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Passing variables from Flash to PHP
O'Reilly's "Flash Remoting" discusses php examples fairly well although not all the source files are available on their website like they claim. www.flash-remoting.com > -Original Message- > From: Miles Thompson [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 11:14 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Passing variables from Flash to PHP > > > At 10:44 AM 4/2/2004 -0800, [EMAIL PROTECTED] wrote: > >On Thu, 1 Apr 2004, Edward Tilley wrote: > > > > > Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to > > > pass a variable ( $flash = 1 ) back out to my PHP script and > can't find > > > any examples of this working after 2 days of looking. I can't get a > > > urldecode to work and I don't want a WDDX because I don't see > pertinent > > > WinOS examples on the .org website. > > > > > > Other methods I've tried included running a > > > "getURL("change_flash_value.php") " script in Flash - the PHP script > > > didn't execute and the value of $flash didn't change in keeping. > > > >It think you will want getURL("change_flash_value.php?flash=1") and then > >grab the flash variable from the $_REQUEST array. > > > >There is a great book called "Macromedia Flash MX Professional 2004 for > >Server Geeks" by Nate Weiss (ISBN: 0735713820) that, while it > doesn't have > >PHP examples, does a great job of discussing Flash/server communication. > > > >-- > >David G. Risner > >Software Engineer -- California State University, Los Angeles > >http://www.risner.org/david/ > > Use SendandLoad as was done here to pass vars to a php login script: > > varSender = new LoadVars(); > varReceiver = new LoadVars(); > varSender.first_name = first_txt.text; > varSender.last_name = last_txt.text; > varSender.password = pass_txt.text; > varSender.action = 'login'; > varSender.sendAndLoad("http://"+ host + > "user_logon.php", > varReceiver, 'GET'); > > A copy of ActionScript for Flash MX, The Definitive Guide is really > helpful. I don't know if Colin Moock has a MX2004 version out yet. > > Hope this has been helpful - Miles > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Displaying a money datatype from mssql - Solution
Recap: In the query I had; SELECT totalamount And it was returning; Total Amount 5.41108926696E-309 I tried to modify the query to; SELECT cast(totalamount as decimal(10,2)) as totalamount And php gave me an error; Undefined Index at line (x); When I tried to use 'number_format($totalamount,2)' it returned; Total Amount 0.00 Solution: The solution was in the query; SELECT cast(totalamount as numeric(10,2)) as totalamount This returns the proper formatting; Total Amount 123.50 alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. **
[PHP] code design? modular?
is it ok practice to put code like the code to put results from an mysql query into a combo box into an include file and then just include it wherever its needed? the code i can see would have to be used at least 5 times in the same page
[PHP] Problem sending with mail()
Hi, I'm stumped. I have a script to send a simple email using the mail() function in PHP. For some reason I can only receive the email if I send it to my hotmail account. If I send to my regular email ([EMAIL PROTECTED]) I can't get it. I've also tried sending to other non-hotmail addresses with no luck. any ideas? Cheers, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php + mysql + japanese???
[snip] hi! i have developed a web site in php using mysql 3.x and have to implement it in japanese, it seems that i have to use unicode/UTF-8, but i am having problems with mysql... anyone could help or anyone knows of any resource that helps in doing this? [/snip] If you are having problems with MySQL then perhaps a mailing list at http://www.mysql.com can help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 not happy together?
I don't think Zend Optimizer can work with PHP 5 by the moment. El vie, 02-04-2004 a las 01:28, Elisamuel Resto escribió: > I've installed Apache and PHP5 RC1 fine, added my needed modules fine, then > I installed Zend Optimizer 2.5.1 and it doesn't load? phpinfo() doesn't show > it as loaded. php.ini is in the correct place and PHP is reading it. php.ini > has the Zend Optimizer lines at the bottom as added by the installer. > > What to do? > > Regards, > Samuel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [solved] assigning array to $_SESSION
figured out how to do the $_SESSION multi dim arry thing...
Re: [PHP] Passing variables from Flash to PHP
At 10:44 AM 4/2/2004 -0800, [EMAIL PROTECTED] wrote: On Thu, 1 Apr 2004, Edward Tilley wrote: > Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to > pass a variable ( $flash = 1 ) back out to my PHP script and can't find > any examples of this working after 2 days of looking. I can't get a > urldecode to work and I don't want a WDDX because I don't see pertinent > WinOS examples on the .org website. > > Other methods I've tried included running a > "getURL("change_flash_value.php") " script in Flash - the PHP script > didn't execute and the value of $flash didn't change in keeping. It think you will want getURL("change_flash_value.php?flash=1") and then grab the flash variable from the $_REQUEST array. There is a great book called "Macromedia Flash MX Professional 2004 for Server Geeks" by Nate Weiss (ISBN: 0735713820) that, while it doesn't have PHP examples, does a great job of discussing Flash/server communication. -- David G. Risner Software Engineer -- California State University, Los Angeles http://www.risner.org/david/ Use SendandLoad as was done here to pass vars to a php login script: varSender = new LoadVars(); varReceiver = new LoadVars(); varSender.first_name = first_txt.text; varSender.last_name = last_txt.text; varSender.password = pass_txt.text; varSender.action = 'login'; varSender.sendAndLoad("http://"+ host + "user_logon.php", varReceiver, 'GET'); A copy of ActionScript for Flash MX, The Definitive Guide is really helpful. I don't know if Colin Moock has a MX2004 version out yet. Hope this has been helpful - Miles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] I can't view files uploaded with PHP
Hi everybody! I write some PHP scripts for a system's module that allows the user to upload a file from his computer to the host. It works fine in a server with Linux Apache MySQL PHP (LAMP) environment. I based on the examples of this page: http://www.php.net/manual/en/features.file-upload.php Las week we transfer the whole system to another server with the same environment, but now the uploaded files can't be viewed in the browser. That's because the file is uploaded with 640 permissions and can't be opened by the browser with a wwwrun user. We check in the old server and find that these uploaded files with 644 permissions. I check the httpd.conf and php.ini files looking for something like a umask option, but I find nothing like that. Can anyone tell me what can I do to solve this problem in the new server? We can't return to the old server anymore! Thanks a lot for your help! http://www.latinmail.com - La forma más cómoda de enviar y recibir tus e-mails -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php + mysql + japanese???
hi! i have developed a web site in php using mysql 3.x and have to implement it in japanese, it seems that i have to use unicode/UTF-8, but i am having problems with mysql... anyone could help or anyone knows of any resource that helps in doing this? thanx in advance, luis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing variables from Flash to PHP
On Thu, 1 Apr 2004, Edward Tilley wrote: > Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to > pass a variable ( $flash = 1 ) back out to my PHP script and can't find > any examples of this working after 2 days of looking. I can't get a > urldecode to work and I don't want a WDDX because I don't see pertinent > WinOS examples on the .org website. > > Other methods I've tried included running a > "getURL("change_flash_value.php") " script in Flash - the PHP script > didn't execute and the value of $flash didn't change in keeping. It think you will want getURL("change_flash_value.php?flash=1") and then grab the flash variable from the $_REQUEST array. There is a great book called "Macromedia Flash MX Professional 2004 for Server Geeks" by Nate Weiss (ISBN: 0735713820) that, while it doesn't have PHP examples, does a great job of discussing Flash/server communication. -- David G. Risner Software Engineer -- California State University, Los Angeles http://www.risner.org/david/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP charset encoding
Hello Nabil, Good to see you here :) I hope you solved the problem. anyway, i would like to make a comment about something: The Charset is defined in many places, If you are using HTML in the Tag Apache, PHP, Header(). you can use all these methods to specify the charset, what i suggest to use, is to get a network sniffer, or to get the "Live HTTP Headers" Plugin for firefox. Try to find out what is "EXACTLY being sent to the browser. Wish you best of Luck , Ammar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: asigning an array of variables to $_SESSION
Andy B wrote: "$_SESSION['guesbook'] = $arr;" is it safe to say that i can do this: while($_SESSION['guestbook']=mysql_fetch_array($query)) to get the same thing as $_SESSION[guestbook]=$R?? No, that will se $_SESSION['guestbook'] to one thing after another, not an array. I would suggest: while($rec = mysql_fetch_array($query)) { $_SESSION['guestbook'][] = $rec; //do something else with $rec? } -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Flash MX
On Thu, 1 Apr 2004, Nadim Attari wrote: > I have to send data to flash. Should i use the "urlencode()" or the > "rawurlencode()" function to encode the data? If you are going to be doing this a lot, you should take a look at AMFPHP, Flash Remoting for PHP, at http://sourceforge.net/projects/amfphp/ This seems to be a fast, reliable way to send data back and forth between your server and your Flash client. -- David G. Risner Software Engineer -- California State University, Los Angeles http://www.risner.org/david/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: asigning an array of variables to $_SESSION
"$_SESSION['guesbook'] = $arr;" is it safe to say that i can do this: while($_SESSION['guestbook']=mysql_fetch_array($query)) to get the same thing as $_SESSION[guestbook]=$R?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP as module, also as suexec, in Apache?
Running PHP Version 4.2.2 I would also like to run PHP both as an Apache module and in CGI mode. My Red Hat 9 installation includes a nice Apache with PHP compiled in. I would like to run the "ARSC" PHP/MySQL chat application (from sourceforge.net) on this server. I could run it as-is, however the authors recommend using its server sockets feature to cut down on CPU/RAM useage. This requires that PHP be compiled as a CGI version with --enable-sockets. Can I add a PHP CGI installation to my system without its interfering with the Apache module's performance? The suggested PHP CGI compilation instruction for ARSC is: ./configure --prefix=/usr/local/php-cgi/4.2.3 \ --with-mysql=/your/mysql/sources \ --enable-sockets followed by "make" and "make install", of course. My guess is that this will NOT impact the Apache installation, as the CGI version of PHP would need to be invoked by the application, which is not the same as the server module that parses every file with an extension identified in the .conf files. (In Red Hat 9/Apache 2.0, that's the php.conf file included in httpd.conf. In earlier versions of Apache it's right in httpd.conf itself.) Maybe? Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: XSLT bug?
No. '<' is always for the opening tag. So you have to enter the entity < whenever you mean '<' in XML data. Vincent Jansen wrote: That works, but shouldn't this behave the way I thought it should -Original Message- From: Juan Torres [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 april 2004 15:59 To: [EMAIL PROTECTED] Subject: [PHP] Re: XSLT bug? Try this: Good Luck. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: asigning an array of variables to $_SESSION
Andy B wrote: hi... i need to assign an array to $_SESSION. the reason for this is that i have a page that gets data from 2 different tables from the same mysql db all at the same time... there is guestbook (for the guestbook) and events (for the events section). i guess i would need to know 2 things: 1. can only 1 call to mysql_connect deal with 2 different table calls at the same time? Yes, just use different statement handles 2. since "guestbook" and "events" have the same exact field names i need to have $guestbook array and $events array assigned to $_SESSION so they dont get mixed up. i have something like this to start with: $query=mysql_query("select * from guestbook order by Number ASC")||die(mysql_error()); while($guestbook=mysql_fetch_array($query)){ //this is as far as i got so far //how and where would i assign $guestbook to //$_SESSION so i would have something like $_SESSION //['guestbook']['Number']? } $arr = array(1, 2, 3, 4, 5); $_SESSION['guesbook'] = $arr; or $_SESSION['guestbook']['Number'] = $value; -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] asigning an array of variables to $_SESSION
hi... i need to assign an array to $_SESSION. the reason for this is that i have a page that gets data from 2 different tables from the same mysql db all at the same time... there is guestbook (for the guestbook) and events (for the events section). i guess i would need to know 2 things: 1. can only 1 call to mysql_connect deal with 2 different table calls at the same time? 2. since "guestbook" and "events" have the same exact field names i need to have $guestbook array and $events array assigned to $_SESSION so they dont get mixed up. i have something like this to start with: $query=mysql_query("select * from guestbook order by Number ASC")||die(mysql_error()); while($guestbook=mysql_fetch_array($query)){ //this is as far as i got so far //how and where would i assign $guestbook to //$_SESSION so i would have something like $_SESSION //['guestbook']['Number']? } tnx for the help (never had to deal with multi dim arrays yet)
RE: [PHP] I think this is a bug...cant use exec commands.
Thank you all for your collective help. I was very frustrated. This list helped me find the answer quickly and once again PHP is slowly all beginning to make sense. The default values enable safe-mode and that is what Jason was trying to get me to check. Thus when the php.ini wasn't where php thought it was then the engine just used the default values. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: parsing xml the right way
Merlin wrote: Hi there, I think I am parsing xml documents the wrong way. There must be a better way to access the results laterone like objects. For example I would like to search in a free form for a city name inside an xml document and php should return the country name and continent. This is the xml structure: Andorra AD Europe Encamp Escaldes-Engordany Ordino Soldeu Has anybody a good hint for me? Thanx in advance, Merlin I created this class a short while ago that parses all of your XML into an easily usable Associative array structure. It extends PEAR::XML_Parse, so you need that as well. http://reversefold.com/~papercrane/XML_Parser_Assoc/Assoc.phps http://pear.php.net/package/XML_Parser -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Session help please?
Paul wrote: Probably a stupid question. I figured I could do something like $_SESSION['test'] = 5 and refer to $test on other pages however I cannot. The reason I thought I could do this is because I can do $_SESSION['test'] = $_POST['test'] and be able to refer to just $test on other pages. Is the correct way to do this to make sure that I have somewhere session_register['test'] Thanks! It is true that you should be able to use $test to access the session var in other pages, but only if you have register_globals on and you have called session_start(). $_SESSION['var'] = 1; is the same as $var = 1; session_register('var'); However, it's never a good idea to rely on globals because: 1) The variable could come from the session, POST, or GET and you don't know which one it comes from. Sure, you know the order of precedence (you can even set it yourself in the php.ini), but you still don't know which one was used. 2) Within functions, you don't have direct access to global variables. You can use global $var; but that's *VERY* prone to errors. You can use $GLOBALS['var'] but that's nearly as much typing as $_SESSION['var'] and is far less reliable and secure. My suggestion is to turn off register_globals (as many others will tell you) and use $_POST, $_GET, $_SESSION, and maybe even $_REQUEST. -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache version... 1.3.29 vs 2.0.
Frano ILICIC wrote: Hello, I just wonder what is the best apache version to run PHP 4.35? Just wondering if there is an obvious choice? I'm running both 1.3.x and 2.0.x (both currently running PHP 4.3.4) and both seem to work equally well. I would say that if the your server is running Linux and you don't need any of the new fancy modules that can be used with Apache 2.0.x use 1.3.x. If your server is running Windows you will probably want to run Apache 2.0.x since that is supposed to run much better under Windows than 1.3.x. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP charset encoding
if the page that the input form is on sets utf-8 as the content type, then most (?) browsers will send utf-8. you can use a meta tag like: utf-8 characters are 8 bit clean, so they can be stored and retrieved in mysql 3.x ok, but proper utf-8 sorting etc. doesn't work. for many purposes though it seems to be ok. single characters in utf-8 encoding do look like multiple characters as far as 8 bit text handling programs are concerned (so yes, 15 characters in iso-8859-1 or ascii isn't the same length as 15 characters in utf-8). fonts that support utf-8 are required for properly displaying utf-8, and you have to specify utf-8 on the display page (either via a content-type header or with content-type meta tag as above) to get the browser to use the right fonts. - rob Always use Content-type header, because the meta is overrided by the ISO-8859-1 default in php.ini. Also, use *DOS* as the encoding in MySQL to work w/ UTF-8 characters. Also, remove the default encoding in Apache server (if you're using one) because it also overrides meta tags in html files. After the proper header is sent, it is the duty of the client (browser) to find relevant fonts. However, make sure you use the lang and xml:lang attribute in your html/xhtml to select your locale. (different locale use a different set of fonts) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Zend Optimizer 2.5.1 + PHP5 RC1 + WinXP + Apache 2 not happy together?
I've installed Apache and PHP5 RC1 fine, added my needed modules fine, then I installed Zend Optimizer 2.5.1 and it doesn't load? phpinfo() doesn't show it as loaded. php.ini is in the correct place and PHP is reading it. php.ini has the Zend Optimizer lines at the bottom as added by the installer. What to do? Regards, Samuel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache version... 1.3.29 vs 2.0.
--- Frano ILICIC <[EMAIL PROTECTED]> wrote: > I just wonder what is the best apache version to run PHP 4.35? > Just wondering if there is an obvious choice? Maybe not obvious, but I think the best choice is the latest Apache 1.3.x. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] determining number of rows in a mysql table
-{ Rene Brehmer }- wrote: Thought it looked fishy hehe ... My only problem is: Sometimes you actually need the data from that table later in the same script, so instead of doing another data pull, I have alot of cases where this is alot more useful (not actual code from any of my work, but I've used this structure in the past): $query = mysql_query("SELECT $fields FROM $table WHERE $crit") or die('fetch error'.mysql_error()); if (mysql_num_rows($query) > 0) { $result = mysql_fecth_array($query); // and so on ... } Use this code instead: if ($result = mysql_fetch_array($query)) { // do something } BTW, pls remember that an array of nothing (array()) is FALSE when it is casted into boolean. The comparison '!== FALSE' is not necessary just because mysql_fetch_array does not return empty arrays. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache version... 1.3.29 vs 2.0.
Hello, I just wonder what is the best apache version to run PHP 4.35? Just wondering if there is an obvious choice? Thanks for any reply. Have a nice day Frano ILICIC Transcribe>WORLD Limited Mail : [EMAIL PROTECTED] Web : http://file-saveas.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] control panel--graphic question
[snip] For a program I am writting I need to have a control panel to display anything that may be wrong. I would like to use something like a stoplight so that it would be easily understood by a lay person. Does anyone have any comments as to what they have used? Also does anyone have a function/graphic that would be a stop light and changing the var would make it either show red, green, or yellow? [/snip] you will need three graphics if("good" == $condition){ echo "\n"; } elseif("marginal" == $condition){ echo "\n"; } elseif("bad" == $condition){ echo "\n"; } HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php email functionality
I just tried downgrading to version 4.3.4 and it still does not work. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> Jason Wong <[EMAIL PROTECTED]> 04/02/04 10:35AM >>> On Saturday 03 April 2004 00:30, Shawn Beard wrote: > There are no errors generated in the log. It just flat out doesnt work > anymore. Are the smtp settings in php.ini identical to the previous version? Are you positive you have made no other changes to your setup whilst upgrading php? If so, does downgrading back to the previous version work? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Stenderup's Law: The sooner you fall behind, the more time you will have to catch up. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] control panel--graphic question
Greetings, This is more of a graphic question For a program I am writting I need to have a control panel to display anything that may be wrong. I would like to use something like a stoplight so that it would be easily understood by a lay person. Does anyone have any comments as to what they have used? Also does anyone have a function/graphic that would be a stop light and changing the var would make it either show red, green, or yellow? Thanks, Leonard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php email functionality
I havent tried downgrading yet but yes the SMTP settings in the php.ini are identical to what they were before. I even tried deleting the php folder and starting from scratch rather than using the upgrade path. Still the same problem. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> Jason Wong <[EMAIL PROTECTED]> 04/02/04 10:35AM >>> On Saturday 03 April 2004 00:30, Shawn Beard wrote: > There are no errors generated in the log. It just flat out doesnt work > anymore. Are the smtp settings in php.ini identical to the previous version? Are you positive you have made no other changes to your setup whilst upgrading php? If so, does downgrading back to the previous version work? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Stenderup's Law: The sooner you fall behind, the more time you will have to catch up. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Relative Url
--- Chris Thomas <[EMAIL PROTECTED]> wrote: > I working on creating a poll script, and right now it consists of 3 > main files: > poll.php > pollFunctions.php > poll.css > These files reside in the /poll directory (for now) [snip] > So what im trying to figure out is the relative url of where the > pollfunctions.php file resides. $url = '/poll/pollfunctions.php'; Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php email functionality
On Saturday 03 April 2004 00:30, Shawn Beard wrote: > There are no errors generated in the log. It just flat out doesnt work > anymore. Are the smtp settings in php.ini identical to the previous version? Are you positive you have made no other changes to your setup whilst upgrading php? If so, does downgrading back to the previous version work? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Stenderup's Law: The sooner you fall behind, the more time you will have to catch up. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php email functionality
There are no errors generated in the log. It just flat out doesnt work anymore. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> "Sam Masiello" <[EMAIL PROTECTED]> 04/02/04 10:14AM >>> What sorts of errors are you seeing in your log? --Sam -Original Message- From: Shawn Beard [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] php email functionality I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php