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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enabling both $_GET['variable'] and $variable

Status
Not open for further replies.

1510982

Programmer
Feb 17, 2002
57
SI
Which settings should I change so that both methods would work (backwards compatibility). I'm using Apache on WIN32 platform with PHP 4.3.0 installed. Thanks in advance, L.
 
Thanks, not it works. For anybody, experiencing the same problem, find php.ini-recommended in you PHP directory and save it as php.ini. Then find register_globals and set it to On, as Daniel suggested.

Have fun!

L.
 
1510982:

You advice is good, but should be more general. I have found of late that some installations of PHP (for example, on some BSD variants), the file you must copy to php.ini will be called php.ini-dist.

In any regard, once you had a php.ini file, danielhozac's recommendation worked, no? Want the best answers? Ask the best questions: TANSTAAFL!
 
Yep, it work alright. That was a stupid typing mistake from me to write - not it works - I meant to say "now it works". As other installations of PHP are concerned, I didn't have any clue about different procedure upon setting the register_globals to on in the .ini file. I hope somebody would find that useful. Regards, L.

 
On a Windows install, there is both php.ini-dist & php.ini-recommended

I guess the recommended one is a little more secure because it will likely have a lot more disabled.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top