473,385 Members | 1,940 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,385 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 4653
"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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.