[nycphp-talk] php.ini question
Daniel Krook
krook at us.ibm.com
Thu Sep 2 12:21:52 EDT 2004
> all variables that weren't previously declared throw an error.
Rahmin,
If what you mean is that your variables from the HTTP request or server
environment aren't available, you're probably referring to the fact that
register globals is off on the new machine. In PHP, regular variables
don't need to be declared before they're used, so that will not cause an
error.
It's highly recommended that instead of flipping them back on in the INI
file or in your script, you should consider adjusting your application
instead:
http://us4.php.net/register_globals
http://www.google.com/search?hl=en&ie=UTF-8&q=php+register+globals+off&btnG=Google+Search
Daniel Krook, Application Developer
WW Web Production Services North 2, ibm.com
1133 Westchester Avenue, White Plains, NY 10604
Personal: http://info.krook.org/
Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897
More information about the talk
mailing list