[PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Beauford.2002
Hi,

I asked previously about the differences between the two and the concensus
was any differences are in the operating systems themselves and not with
PHP. Knowing this, how do I get rid of these errors that keep coming up in
Windows, that don't in Linux. One specific one is  Notice: Undefined
variable: add in E:\IIS Webs\address.php on line 3

Someone said to turn on register_globals which I have. Another suggestion
was to put a @ sign in from of all variables. This is a real pain. Anyone
have any other suggestions, or is this basically it?

Also, is there anything else that anyone can think of that I may have to
look forward to using PHP under Windows?

TIA




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jeff Lewis
Set your php.ini file and error reporting as such:

error_reporting  =  E_ALL  ~E_NOTICE

See if that helps with the undefined notice.

jeff
- Original Message -
From: Beauford.2002 [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 12:52 PM
Subject: [PHP] Windows PHP vs Linux PHP


 Hi,

 I asked previously about the differences between the two and the concensus
 was any differences are in the operating systems themselves and not with
 PHP. Knowing this, how do I get rid of these errors that keep coming up in
 Windows, that don't in Linux. One specific one is  Notice: Undefined
 variable: add in E:\IIS Webs\address.php on line 3

 Someone said to turn on register_globals which I have. Another suggestion
 was to put a @ sign in from of all variables. This is a real pain. Anyone
 have any other suggestions, or is this basically it?

 Also, is there anything else that anyone can think of that I may have to
 look forward to using PHP under Windows?

 TIA




 --
 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] Windows PHP vs Linux PHP

2003-01-15 Thread Matt Schroebel
 -Original Message-
 From: Jeff Lewis [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, January 15, 2003 1:00 PM
 To: Beauford.2002; PHP General
 Subject: Re: [PHP] Windows PHP vs Linux PHP
 
 
 Set your php.ini file and error reporting as such:
 
 error_reporting  =  E_ALL  ~E_NOTICE

Or initialize your variables before using them ...  especially true if
register_globals is on.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread 1LT John W. Holmes
 Set your php.ini file and error reporting as such:

 error_reporting  =  E_ALL  ~E_NOTICE

Or initialize your variables before using them ...  especially true if
register_globals is on.

Yeah, that's the best recommendation. Especially if you plan on distributing
your code for others to use, where you have no idea of the error setting on
their machines. Sure, you can set it with error_reporting() in your script,
but maybe they don't want it changed, regardless if it's just for your
script.

---John Holmes..


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jim Lucas
it has to do with declaring all php variables before using them in the
script.

$var='';

then do something with the variable.

Jim
- Original Message -
From: Beauford.2002 [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 9:52 AM
Subject: [PHP] Windows PHP vs Linux PHP


 Hi,

 I asked previously about the differences between the two and the concensus
 was any differences are in the operating systems themselves and not with
 PHP. Knowing this, how do I get rid of these errors that keep coming up in
 Windows, that don't in Linux. One specific one is  Notice: Undefined
 variable: add in E:\IIS Webs\address.php on line 3

 Someone said to turn on register_globals which I have. Another suggestion
 was to put a @ sign in from of all variables. This is a real pain. Anyone
 have any other suggestions, or is this basically it?

 Also, is there anything else that anyone can think of that I may have to
 look forward to using PHP under Windows?

 TIA




 --
 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