Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 082011

Turn on register_globals in PHP


When turned on, register_globals will automatically inject the PHP script with variables such as those from HTML form. The feature was DEPRECATED and turn off by default in the recent PHP distributions.

But if you still want to change it, you need to edit the php.ini

vi /etc/php.ini

Locate and set

register_globals = on;

Remember to restart web server such as Apache if needed.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>