Jun 04 2010

register_globals with mod_suphp

Category: Linux,PHPguillem @ 4:05 PM

Although turning on register_globals is not a good idea, there are some fu___ scripts out there that need that. If you can’t get rid of those scripts (you really need to try to, belive me), here comes the solution:

How do you do it in a PHP5 install with mod_suphp?
Just navigate to the folder where you have your script and create a php.ini file (if you don’t have one). Inside it, just write ‘register_globals = 1′  (without the quotation marks, of course)

Tags: ,