Re: [PHP] Undefined variable error message
http://www.php.net/manual/en/function.error-reporting.php At 10:31 18-12-02 +, Michael Egan wrote: All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' This occurs wherever a variable name is referred to. I'm concerned about this for two reasons: 1 Will I have to go through each script making substantial alterations? 2 Has the configuration of PHP been altered in some way without my knowledge? The latter would suggest fairly significant security issues. Does anybody have any ideas as to how this might have occurred and the quickest way of resolving it? Or of links to possible solutions? This is particularly irritating as last night was the office Christmas party and I'm in a rather fragile state this morning :-( Michael Egan -- 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] Undefined variable error message
Hi Michael, All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' Looks like someone's tweaked the error reporting level so it's on E_ALL, which can be a somewhat alarmist setting :-) Read all about it at http://php.net/manual/en/ref.errorfunc.php The latter would suggest fairly significant security issues. Does anybody have any ideas as to how this might have occurred Are you on a shared host, or is there someone else who admins your box? If so, have a word with them and see if they've been fiddling with php.ini - that's where the error reporting level is set. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined variable error message
Michael Egan wrote: All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' Has the code been working on a different server with an earlier version of PHP (or this server upgraded)? It sounds as though it needs register_globals in php.ini turned on, or the code modified to use the $_GET and $_POST super globals. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined variable error message
Hmm, yes. Why did I not think of error reporting at E_ALL? Chris Hewitt wrote: Michael Egan wrote: All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' Has the code been working on a different server with an earlier version of PHP (or this server upgraded)? It sounds as though it needs register_globals in php.ini turned on, or the code modified to use the $_GET and $_POST super globals. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Undefined variable error message[Scanned]
Jon, Many thanks - the actual problem is now solved. As to how it occurred I think must be attributable to me at some stage in terms of fiddling around with the php.ini file. Perhaps I've had too many nights like last night and the brain cells are depleting past a critical point! Thanks to everybody else who responded to this query. Michael Egan -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 18 December 2002 10:39 To: Michael Egan; PHP General (E-mail) Subject: RE: [PHP] Undefined variable error message[Scanned] Hi Michael, All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' Looks like someone's tweaked the error reporting level so it's on E_ALL, which can be a somewhat alarmist setting :-) Read all about it at http://php.net/manual/en/ref.errorfunc.php The latter would suggest fairly significant security issues. Does anybody have any ideas as to how this might have occurred Are you on a shared host, or is there someone else who admins your box? If so, have a word with them and see if they've been fiddling with php.ini - that's where the error reporting level is set. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php