473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 4655
"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
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
10
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,...
6
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...
8
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...
2
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...
15
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...
6
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...
17
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...
12
by: Dave | last post by:
In PHP 4.4, what is the most secure server configuration while keeping REGISTER_GLOBALS on?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.