|  | -
-
- QUESTION:
- PHP - Register Globals Off
ANSWER: - Why won't my php script see the variables passed to it from the previous page in the url ?
ie: http://yoururl.com/script.php?arg1=value
Yes this is the way it is supposed to be for SECURITY REASONS. register_globals is turned off and that is the way it should be for security reasons. What you should do instead of turning your register_globals on is try to write your scripts using the superglobal GET.
or if you use a form you can also use POST, but GET is the best (at least in my opinion) because it does'nt require a form.
BUT, if you HAVE to do this, you can set your register_globals option set to ON:
just change the line "register_globals = Off" to "register_globals = On"
You need to create a file called php.ini and place it within each directory that you need to change options.
All you need is the following
php.ini
register_globals = On register_argc_argv = On safe_mode = On magic_quotes_gpc = Off
and any options as needed, same format as they appear in the servers main php.ini ############################################################ Please be advised that this is a SUPPLEMENTAL Online Manual.
The PRIMARY Online Manual is inside your Online Control Panel... to access it, just click Documentation link at very bottom of Online Control Panel screen.
You should always consult the Online Manual inside your control panel first... and only consult this SUPPLEMENTAL Online Manual as a last resort. if after consulting the Control Panel Documentation, you still need assistance, please CONTACT SUPPORT top | | |