RE: [PHP] Re: Undefined Variable Problems...

From: Date: Sun, 06 Mar 2005 21:29:43 +0000
Subject: RE: [PHP] Re: Undefined Variable Problems...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210115@lists.php.net to get a copy of this message
Sorry, as I said, I just joined and I didn't notice that it's set to reply-to the original sender rather than the list. A bit annoying. Thanks again. Nick -----Original Message----- From: Jason Barnett [mailto:jason.barnett@telesuite.com] Sent: Sunday, March 06, 2005 1:10 PM To: php-general@lists.php.net Subject: [PHP] Re: Undefined Variable Problems... Please keep responses on the mailing list / newsgroup... Nick Zukin wrote: > Thanks for the quick response. > > Yes, had to turn register_globals on because it broke things. Many of these > sites aren't mine and I have no idea what's involved in trying to fix them > all. If you saw a full 1.2 GB error log (per domain) that built up to that > size in less than a month, though, you'd see that it would take a lot of > re-coding. > > Assuming I can fix the pages that break when register_globals turned off, > how big a deal are the undefined variables? If you can manage to turn register_globals off that would be the most important thing. Undefined variables aren't necessarily bad, but they can lead to obscure bugs (for example, if a variable is set inside of an included file instead of a main script where you thought it was unset).

« previous php.general (#210115) next »