I had a client recently contact me with a script that wasn't working. I
quickly isolated the problem as to the fact that the $_GET array was not
being made available to all scripts, even though register_globals was set to
ON. The client then notified his host who seemed to know exactly the issue
and we added these lines to the top of the script (this script is included
in all other scripts) and it solved the problems:
/* mp.net patch */
foreach($_GET as $var => $value) $$var = $value;
foreach($_POST as $var => $value) $$var = $value;
foreach($_COOKIE as $var => $value) $$var = $value;
foreach($_SERVER as $var => $value) $$var = $value;
ob_start();
/* end of patch */
The host added these comments to my client:
"I can fix that for you, but in a couple of months, PHP5 will be out for
real, so you might as well want to fix it in your code."
Is this a work-around for right now or is there some kind of rework that all
scripts will have to be modified for version 5?
--
Gaylen
Raven Web Hosting http://ravenwebhosting.com
PHP KISGB PHP Guest Book for Standard and phpNuke sites
http://www.ravenphpscripts.com
PHP KISSQ PHP Stock Quote for Standard and phpNuke sites
http://www.ravenphpscripts.com