Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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

I changes that settings and I still get this error

What should I do next?

Thank you,

Re: register_globals

Quoted text here. Click to load it

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  

Photos from 40 countries on 5 continents:
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world:

Re: register_globals

Samuel Shulman wrote:
Quoted text here. Click to load it

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...

Re: register_globals

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?


Quoted text here. Click to load it

Re: register_globals

Samuel Shulman wrote:
Quoted text here. Click to load it

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.

Re: register_globals

On Tue, 01 Aug 2006 19:04:48 GMT, "Samuel Shulman"

Quoted text here. Click to load it

 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

 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 :: :: :: disk and FTP usage analysis tool

Site Timeline