Enter your email to subscribe for latest posts.

March 3, 2008

Joomla: PHP register_globals setting

Quote from article of: VR Junkyard Posted under Joomla

This is tutorial for joomla problem, cause usually when you just installed joomla, some of you may get this notice:
PHP register_globals setting is `ON` instead of `OFF`

What to do? this is an easy step by step to fix that problem:

- make .htaccess file in your Joomla site’s root and add this lines:

# Offers protection during hack attacks by NOT disclosing error
# messages, server paths, et cetera, and turns off your globals.
php_flag display_errors off
php_flag register_globals off

- make “php.ini” in your Joomla site’s root and add this lines:

register_globals = Off
magic_quotes_gpc = On

- open your globals.php file, and change the line:

define( 'RG_EMULATION', 1 )


define( 'RG_EMULATION', 0 )

now, your register globals is OFF!


Related Posts Plugin for WordPress, Blogger...