|
Posted by Andy Hassall on 09/03/07 23:40
On Mon, 03 Sep 2007 23:32:25 -0000, Adam Baker <adamb924@gmail.com> wrote:
>I'm not sure whether the following is a problem with PHP or my Apache
>server. Minimal example:
>
><?php
>if (isset($dummy))
[snip]
>
>With this URL:
>http://localhost/minimal.php?dummy=5
>
>isset works as expected when I run this on a different server (Windows
>something, with an older PHP version, sorry I don't know the
>specifics). Can anybody say whether this is a problem with my PHP
>installation or my Apache installation?
It's really a problem with your code, see: http://uk3.php.net/register_globals
You're using a feature that was disabled by default about 5 years ago for
several good reasons. You can re-enable it, but that's not a good idea; see
previous link for how.
See also http://uk3.php.net/manual/en/language.variables.external.php
--
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]
|