I just installed PHP version 4.3.11 onto one of my development computers running Apache 1.3.28. I ran a client's web site that uses php heavily and found that errors occured when it encountered the $_POST variable syntax that was used in previous php versions. Example:
$_POST[reload] (without the apostrophe ' surrounding the name 'reload') now creates the following error....
Notice: Use of undefined constant reload - assumed 'reload' in ...
I assumed I had to go through my code and now change all the $POST variable to a different syntax using the apostrophy...ie $POST['reload']. So I began the task and it works fine in the newer version; however, when I run the same code using the older version of php the $_POST variables lose their information.
I am in a quandry because all of my client's that use $_POST in their scripts are working fine but I am afraid as soon as the servers they are running on upgrade to version 4.3.11 the scripts will suddenly begin to display error messages everywhere. I cannot begin making modifications to correct the syntax because the scripts will then not run correctly with the current versions of php.
Does anyone know of a configuration in the php.ini that can be set to enable the use of the $_POST variables without the apostrophe? I have tried a few (register_globals=On and magic_quotes_gpc = Off) but have not been able to eliminate the error message (although the script seems to run OK).
Thanks,
Lisa😕