|
|
|||||||
| Computers & Information Technologies « Everything related to computers and internet. » |
![]() |
|
|
Share | Thread Tools | Search this Thread |
|
|
#1 |
|
Registered Member
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
|
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???? |
|
|
|
|
|
#2 |
|
Registered Member
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
|
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.
__________________
[ |
|
|
|
|
|
#3 |
|
Registered Member
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
|
thanks lf_rabieh
it works . |
|
|
|
|
|
#4 |
|
Super Moderator
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
|
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. |
|
|
|
|
|
#5 | |
|
Registered Member
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
|
Quote:
....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 |
|
|
|
|
|
|
#6 | ||
|
Registered Member
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
|
Quote:
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 The file should contain this line: Quote:
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)
__________________
[ |
||
|
|
|
![]() |
|
| Tags |
| globals, register, turn |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|