Reputation: 3
$_SESSION['myvar']
becomes available as $myvar
after a session_start()
call.
$_POST['myvar']
becomes available as $myvar
after a form is posted.
I find the above behavior with the PHP installation/configuration on one server, but not on another server. How do I query whether the server is configured as such, and how do I configure the installation to change this behavior? I just can't find anything about this in php.net or elsewhere.
Upvotes: 0
Views: 441
Reputation: 2927
This can be turned on via register_globals
in your php.ini
file. However this is deprecated as of 5.3. See the docs.
Warning This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Upvotes: 0