| 
	
 | 
 Posted by Andy Hassall on 10/18/05 22:15 
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
 
  
Navigation:
[Reply to this message] 
 |