|
|
Posted by Jerry Stuckle on 07/22/21 11:54
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" <dawnerd@gmail.com> wrote in message
> news:1154462455.318133.218150@i42g2000cwa.googlegroups.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.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|