Re: register_globals



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@xxxxxxxxx> wrote in message news:1154462455.318133.218150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... This is why I am thinking about rewriting my whole script in a C language. ... Perhaps there are different methods I could be using to speed up execution. ...
    (php.general)
  • Re: How to Add a Feeback Form
    ... I saw nothing in that script that indicates where the form is e-mailed to so ... Greg Maxey/Word MVP ... PHP or not. ... have the support available yet. ...
    (microsoft.public.frontpage.programming)
  • Re: Bug in #! processing - "pear broken on current"
    ... on the cvs-src mailing list...] ... script is due to the change in parsing I committed on May 28th. ... php would have been started up with: ... /usr/bin/env could be used to fix this, once I write up that change... ...
    (freebsd-arch)
  • Email form script
    ... I have a web form that posts to a .php ... who cannot run .php on their server. ... Or does anyone have a .asp script that will ... Thank you for choosing FormToEmail by FormToEmail.com ...
    (microsoft.public.scripting.jscript)
  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... thinking about rewriting my whole script in a C language. ... execution of the code. ...
    (php.general)