ini_set() question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jay
Forum Newbie
Posts: 22
Joined: Fri Jul 12, 2002 8:36 am
Location: KUL, Malaysia

ini_set() question

Post by Jay »

<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

Code: Select all

<?php

  ini_set('register_globals', '1');

  // and then the rest of the script including sessions, includes, requires etc

?>
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 :)
Post Reply