You are here: Re: isset fails, getenv succeeds (Apache configuration problem?) « PHP Programming Language « IT news, forums, messages
Re: isset fails, getenv succeeds (Apache configuration problem?)

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]


Удаленная работа для программистов  •  Как заработать на 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

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