Option 1 - PHP Config File:
First place to look is to open up the php config file on your root server and find the line register_globals and set it to "on" or "off". Some may want you to set it to "0" or "1".
Option 2 - php.ini File:
If you do not have access to your php config file (most people using shared servers will not have access), you may be able to us a "php.ini" file on any public directory (like under /public_html/). There you will be able to set register_globals on or off to that directory, including all sub-directories. Once you've created the file using the name "php.ini" just type "register_globals = on" in the file and upload that to your server.
Option 3 - .htaccess File:
If the above does not work, just use the .htaccess file and type the following:
#Turn off register_globals
php_value register_globals 0
or
#Turn on register globals
php_value register_globals 1
If all else fails, just do this at the begining of your code:
while(list($k,$v)=each($_POST)){
$$k=$v; //Yes, that's two dollar signs
}
This will set all post data (if you want to use $_GET, just subsatute $_POST to $_GET) as a variable so your code now can read all the data passed to it via Post or Get.
That's it.
NewSourceMedia is providing links to these listings as
a courtesy, and makes no representations regarding the content or
any information related thereto. Any questions, complaints or claims
regarding the downloaded content or details must be directed to the appropriate
publisher. We do not encourage or condone the use of any
software in violation of applicable laws.