Click to See Complete Forum and Search --> : PHP 3 -> 4 Migration Problem


php4user
02-26-2003, 09:30 PM
Just installed PHP4 (Win98, Apache) with the auto Installer, and it appears to be a successful install (can use phpmyadmin, can see phpinfo.php file). But something is wrong somewhere.

My scripts that worked under PHP3, don't work anymore under PHP4. Example: When I submit variables in a form to script A, I get an "undefined variable" error. Script A does not recognize the variables coming to it. I have not changed the scripts, and they worked just fine under PHP3.

What has happened here? Can someone help please?

matto
02-27-2003, 09:56 AM
"undefined variable" errors ...
you can suppress these by changing this line in your php.ini

error_reporting = E_ALL & ~E_NOTICE

into:

error_reporting = E_ERROR | E_WARNING | E_PARSE

AND you'll need to set

register_globals = On

in php.ini, as well.

don't forget to restart the web server afterwards!