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

Posted by Adam Baker on 09/03/07 23:32

I'm not sure whether the following is a problem with PHP or my Apache
server. Minimal example:

<?php
if (isset($dummy))
echo "Set.";
else
echo "Not set.";

echo "\n</br>".getenv("QUERY_STRING");
?>

With this URL:
http://localhost/minimal.php?dummy=5

Produces:
Not set.
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?

Thanks,
Adam

 

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

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