Add register_globals to XAMPP 1.8.4 with PHP 5.5

1.5k Views Asked by At

I have script that needs register_globals just that it got deprecated in 5.3 and removed in 5.4 and I have PHP 5.5. Installing another version of xampp is not an option. I have found this http://www.kaffeetalk.de/using-register_globals-in-php-5-5/ just that this is not for xampp but for lamp or linux. How am I suppose to do it actually.

1

There are 1 best solutions below

4
edmondscommerce On BEST ANSWER

The blog post is pretty clear and will effectively simulate register globals. It will work with any server stack, XAMPP or whatever. The only thing you need to do is create the file and pay attention to which folder you put it in, and then reference that absolute path in your php.ini file.

HOWEVER - I strongly discourage you from doing this and instead look to remove the requirement for register globals by modifying the code itself.