ini_set() question
Posted: Fri Aug 16, 2002 8:47 am
<added>
the version of the online PHP manual was updated and one of the corrections made to the manual was that this was an error and it's not possible to set 'register_globals' the way i describe below.
i was referencing the version of the php manual downloaded recently that said the opposite and that it was indeed possible.
</added>
Hi,
my php.ini 'register_globals' setting is set to Off
( Apache(1.3.22) / PHP(4.2.1) / Windows ME ).
i want to have just one script running with register_globals ON; so i put
despite my many attempts, i am unable to get '$_GET' data simply by referring to something like $c in my script if the url is something like http://www.example.com/chapter.php?c=14
is there something else in my apache or php.ini that i have to set to be able to alter the settings on the fly like that?
Thank you
the version of the online PHP manual was updated and one of the corrections made to the manual was that this was an error and it's not possible to set 'register_globals' the way i describe below.
i was referencing the version of the php manual downloaded recently that said the opposite and that it was indeed possible.
</added>
Hi,
my php.ini 'register_globals' setting is set to Off
( Apache(1.3.22) / PHP(4.2.1) / Windows ME ).
i want to have just one script running with register_globals ON; so i put
Code: Select all
<?php
ini_set('register_globals', '1');
// and then the rest of the script including sessions, includes, requires etc
?>is there something else in my apache or php.ini that i have to set to be able to alter the settings on the fly like that?
Thank you