I am having trouble turning off my Global Variables. I am using the latest version of PHP, and in the ini-dist file Global Variables are set to 'off', but I am still able to use them... I know this because I test on another computer, and there my pages break due to Global Variables.
How can I turn them off on this machine? I am running Windows 2k sp4 w/ IIS.
Thanks!
Global Variables
Moderator: General Moderators
tryit will tell you which php.ini is used (Configuration File (php.ini) Path) as well as the status of register_globals (in the PHP Core section)
Code: Select all
<?php phpinfo(); ?>Well an example is:
on this machine i used $DOCUMENT_ROOT and it worked fine. when i tested it on my work machine all of my $DOCUMENT_ROOT code broke the site. as well as other code. i asked on irc and was told that it was a Global Variables issue.
i would like to turn them off here, so that i can develop knowing FOR SURE, i am not using any Globals (i am very new to php).
thanks for the help so far!
on this machine i used $DOCUMENT_ROOT and it worked fine. when i tested it on my work machine all of my $DOCUMENT_ROOT code broke the site. as well as other code. i asked on irc and was told that it was a Global Variables issue.
i would like to turn them off here, so that i can develop knowing FOR SURE, i am not using any Globals (i am very new to php).
thanks for the help so far!