Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 09-15-2007   #1
Dr.Scoo
Registered Member
 
Dr.Scoo's Avatar
 
Last Online: 03-17-2012
Join Date: Sep 2006
Posts: 568
Thanks: 147
Thanked 296 Times in 212 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Question 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????


Dr.Scoo is offline   Reply With Quote
Old 09-15-2007   #2
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???

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.
__________________
[
J()e is offline   Reply With Quote
The Following 2 Users Say Thank You to J()e For This Useful Post:
Dr.Scoo (09-15-2007), Kingroudy (09-15-2007)
Old 09-15-2007   #3
Dr.Scoo
Registered Member
 
Dr.Scoo's Avatar
 
Last Online: 03-17-2012
Join Date: Sep 2006
Posts: 568
Thanks: 147
Thanked 296 Times in 212 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: How to turn off Register Globals???

thanks lf_rabieh
it works .
Dr.Scoo is offline   Reply With Quote
Old 09-15-2007   #4
Kingroudy
Super Moderator
 
Kingroudy's Avatar
 
Last Online: 02-16-2022
Join Date: May 2006
Posts: 5,580
Thanks: 1,888
Thanked 2,653 Times in 1,593 Posts
Groans: 55
Groaned at 35 Times in 32 Posts
Default Re: How to turn off Register Globals???

KICK ASS!!! the script is working more than fine now:"D
btw, lf_rabieh u know php?
__________________
click on 'Groan' to switch to my left testicle.
Kingroudy is offline   Reply With Quote
Old 09-15-2007   #5
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?
kind of,but im still an amateur....I used to study php in the summer,but sarle chi 1 month mwa22af!!
__________________
[

Last edited by J()e; 09-15-2007 at 02:35 PM. Reason: giving extra details
J()e is offline   Reply With Quote
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)
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
globals, register, turn



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:59 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share