View Single Post
Old 09-15-2007   #6
J()e
Registered Member
 
J()e's Avatar
 
Last Online: 06-13-2011
Join Date: Jan 2007
Posts: 3,530
Thanks: 1,762
Thanked 1,429 Times in 897 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: How to turn off Register Globals???

Quote:
btw, lf_rabieh u know php?
since u want to know abt php,my friend is a freak when it goes to php and he told me to post this abt turning off register globals

Just open your .htaccess file and add this line in the end of it:

php_flag register_globals off

for example:
Code:
##
# @version $Id: htaccess.txt,v 1.5 2005/01/22 23:00:27 spacemonkey Exp $
# @package Mambo
# @copyright (C) 2000 - 2005 Miro International Pty Ltd
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Mambo is Free Software
##

#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if your webserver's URL 
#  is not directly related to physical file paths.
#  Update YourMamboDirectory (just / for root)

# RewriteBase /YourMamboDirectory

#
#  Rules
#
php_flag register_globals off
In addition you may need to create (or edit) a php.ini file in your joomla! root directory.
The file should contain this line:
Quote:
register_globals = off
Register Globals Emulation

In addition to turning off register globals, you should turn off register globals emulation.
Edit your globals.php file:
At about line 23 change
define('RG_EMULATION',1)
to
define('RG_EMULATION',0)
__________________
[
J()e is offline   Reply With Quote
The Following 2 Users Say Thank You to J()e For This Useful Post:
Justin (09-15-2007), Kingroudy (09-15-2007)