Vcoderz Community

Vcoderz Community (http://forum.vcoderz.com/index.php)
-   Computers & Information Technologies (http://forum.vcoderz.com/forumdisplay.php?f=6)
-   -   How to turn off Register Globals??? (http://forum.vcoderz.com/showthread.php?t=9886)

Dr.Scoo 09-15-2007 12:33 PM

How to turn off Register Globals???
 
I uploaded a script on a web site that i created it.
a setting is called Register Globals is on so the script isn't running, instead i have a message "Register Globals is ON".
so do anyone know how to turn it OFF????

J()e 09-15-2007 01:10 PM

Re: How to turn off Register Globals???
 
try this,i dont know if it works):

You are able to turn 'register_globals' on and off via a simple php.ini file.

If you wish to turn it on, create a file called php.ini and within that file add the following line;

register_globals=on

However, should you want to turn it off, you would simply use the following line instead;

register_globals=off

Once you have edited the file, upload to your web content directory that you wish to have the variable set.

Dr.Scoo 09-15-2007 01:22 PM

Re: How to turn off Register Globals???
 
thanks lf_rabieh
it works .

Kingroudy 09-15-2007 01:31 PM

Re: How to turn off Register Globals???
 
KICK ASS!!! the script is working more than fine now:"D
btw, lf_rabieh u know php?

J()e 09-15-2007 02:26 PM

Re: How to turn off Register Globals???
 
Quote:

btw, lf_rabieh u know php?
kind of,but im still an amateurO_o....I used to study php in the summer,but sarle chi 1 month mwa22af!!

J()e 09-15-2007 03:14 PM

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)


All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger