473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

register_globals

I keep getting the
'FATAL ERROR: register_globals is disabled in php.ini, please enable it!'
error

I changes that settings and I still get this error

What should I do next?

Thank you,
Samuel

Aug 1 '06 #1
5 4664
"Samuel Shulman" <sa************@ntlworld.comwrote:
I keep getting the
'FATAL ERROR: register_globals is disabled in php.ini, please enable it!'
error

I changes that settings and I still get this error

What should I do next?
This error message comes from some software written in PHP that you are
trying to run; it is not part of PHP. Maybe the software isn't testing
properly? Maybe you have disabled register_globals in httpd.conf or
..htaccess?

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Aug 1 '06 #2

Samuel Shulman wrote:
I keep getting the
'FATAL ERROR: register_globals is disabled in php.ini, please enable it!'
error

I changes that settings and I still get this error

What should I do next?

Thank you,
Samuel
No, never enable register_globals. Bad, Bad, Bad. Something else is
wrong in your script/server. What script are you trying to run? Is it a
custom made one? if so then you should know where that error is coming
from. Else, the script your are using is screwed...

Aug 1 '06 #3
Thank you for your response,

This is the script that probably caused the problem:

if (function_exists('ini_get')) {
ini_get('register_globals') or exit('FATAL ERROR: register_globals is
disabled in php.ini, please enable it!');
}

This script is part of a big website that already running and I only want to
keep it working

What can I do?

Samuel

"dawnerd" <da*****@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>
Samuel Shulman wrote:
>I keep getting the
'FATAL ERROR: register_globals is disabled in php.ini, please enable it!'
error

I changes that settings and I still get this error

What should I do next?

Thank you,
Samuel

No, never enable register_globals. Bad, Bad, Bad. Something else is
wrong in your script/server. What script are you trying to run? Is it a
custom made one? if so then you should know where that error is coming
from. Else, the script your are using is screwed...

Aug 1 '06 #4
Samuel Shulman wrote:
Thank you for your response,

This is the script that probably caused the problem:

if (function_exists('ini_get')) {
ini_get('register_globals') or exit('FATAL ERROR: register_globals is
disabled in php.ini, please enable it!');
}

This script is part of a big website that already running and I only want to
keep it working

What can I do?

Samuel

"dawnerd" <da*****@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>>Samuel Shulman wrote:
>>>I keep getting the
'FATAL ERROR: register_globals is disabled in php.ini, please enable it!'
error

I changes that settings and I still get this error

What should I do next?

Thank you,
Samuel

No, never enable register_globals. Bad, Bad, Bad. Something else is
wrong in your script/server. What script are you trying to run? Is it a
custom made one? if so then you should know where that error is coming
from. Else, the script your are using is screwed...


You didn't say which version of PHP you're running, but turning it on in
the php.ini file should work - unless it's overridden, as Miguel
indicated. Be sure to check the syntax of your php.ini very carefully.

However - you NEED to fix your code so that it doesn't require
register_globals to be on. It's a huge security hole, and may be
completely disabled in future versions of PHP.

So you can fix it now, or run with the security risk and have to change
it later, anyway. Better to do it now.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 1 '06 #5
On Tue, 01 Aug 2006 19:04:48 GMT, "Samuel Shulman"
<sa************@ntlworld.comwrote:
>I keep getting the
'FATAL ERROR: register_globals is disabled in php.ini, please enable it!'
error

I changes that settings and I still get this error

What should I do next?
Find the script that is insisting register_globals is turned on, and either
upgrade it to a version that doesn't require register_globals, or stop using
it.

register_globals isn't inherently a security risk, but it does turn certain
sloppy programming practices into severe security risks - and it is itself a
sloppy programming practice, and strongly deprecated many versions of PHP ago.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Aug 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
12401
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
10
2172
by: John | last post by:
Hello. I am a newbie to PHP. I am over halfway through my first book that I'm learning with and have just created login pages etc. I just wondered, if I am running php/mysql/apache locally, should I be okay to turn register_globals on without any security issues? Thanks
6
2479
by: wonder | last post by:
Hi, The CRM application said that need to add an option "REGISTER_GLOBALS=On" to the php.ini file, so I did what it told. But I still can't get rid off the following error: The PHP variable "REGISTER_GLOBALS" is disabled (0). This is fatal. Edit your php.ini and set REGISTER_GLOBALS to "On". I changed the value "On" to "Yes", still...
8
2620
by: lian | last post by:
Hi all, I have installed a web-based software written in php which needs that i should turn "register_globals" from off to on in the php.ini. There are some comments for register_globals in php.ini saying: "You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals...
2
1834
by: Phil Latio | last post by:
I am newish to PHP and wish to create an authentication system where a new user is required to validate/complete their sign-up by clicking a link in an email. I am probably capable of putting something together where the user gets sent a link with a set of values but I am sure it would require "register_globals" set to ON. How is this...
15
3346
by: news | last post by:
You'd think it'd be easier to find the answer to this question. Did a search, and all I can find is people asking why something's not working and people replying it's because register_globals is off. I found one person said: "The change is for the better since register_global turned to on had some grim security implications." but no...
6
1762
by: peter | last post by:
Hi. I am just learning PHP. I'm taking over the website at work, which is coded in PHP. I am wondering about register_globals. They are on on the server we use. Is that a threat? I understand I may have to recode if I turn them off, but is there a simple way to turn them off and see if the code still works? Thanks, Peter
17
2875
by: peter | last post by:
I just took over the website at work. I am still learning PHP. Register_globals are on and the script appears to be coded to take advantage of this. I know how to recode the script, but am unsure how to turn them off when I am done. I have googled and came up with placing php_flag register_globals off in the .htaccess file.
12
1808
by: Dave | last post by:
In PHP 4.4, what is the most secure server configuration while keeping REGISTER_GLOBALS on?
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.