Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set register_globals to ON in apachee 2

Status
Not open for further replies.

JASONE25

Technical User
Jun 23, 2005
54
NL
Hi guys i wonder how i can set register_globals to on in apachee 2. I am running php 5 and i looked at phpinfo it was off . I be happy if an expert show me how to turn it on as i got a scripts that needs that option on.Thanks
 
Its better to leave it off globally and just turn it on with .htaccess files. However, its your choice.

To do it globaly, just find your php.ini file and look through it. Its in /etc/php.ini on unix and I think its in your windows dir by default on windows.. if not, check your php install dir or just search for php.ini.

The best option is to use a .htaccess file in the folder you are running that script from. Create a new file (if its not there already) named .htaccess and put the following in it.

Code:
php_flag register_globals on

Enjoy!

-Dustin
Rom 8:28
 
Any expert to be taken seriously will first warn you to leave register_globals to the default OFF setting.

If you choose to disregard the warning, all you need to do is edit the php.ini file. The location can be gathered from the phpinfo() output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top