You are here: Re: Source code Bug or Feature? « PHP Programming Language « IT news, forums, messages
Re: Source code Bug or Feature?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация