|
Posted by Bruce A. Julseth on 10/19/05 07:36
"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:acial1lnn2kdmr5sdl1grgr586vf8piubd@4ax.com...
> On Tue, 18 Oct 2005 14:53:08 -0400, "Bruce A. Julseth"
> <bruceajNoSpam@attglobal.net> wrote:
>
>>I have just inherited someone elses PHP code and there is something
>>strange
>>in it, at least to me. I'm wondering if I inherited a source code bug or
>>is
>>it a PHP feature that I don't know about. This code is in "index.htm" and
>>the first few lines of the file look like:
>>
>><?
>>if($parm) {
>> more code
>>}
>>?>
>>
>>Now, the error I am getting is that "$parm" is not defined. I would expect
>>that. Or is there some "hidden" way $parm can be defined and I just
>>haven't
>>found the code that does it, or don't how to do it.
>
> Search for "register_globals", then correct the script to use $_GET or
> $_POST
> and never think about register_globals being on again :-)
> --
> Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
> http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
RE: register_globals. I assume if I don't find any "register_globals"
defined, this is a bug in the code. Right?
Thanks...
Navigation:
[Reply to this message]
|