You are here: Re: Why does is_dir($_SERVER['DOCUMENT_ROOT']) produce false in Windows XP? « PHP Programming Language « IT news, forums, messages
Re: Why does is_dir($_SERVER['DOCUMENT_ROOT']) produce false in Windows XP?

Posted by Erwin Moller on 01/08/07 10:19

comp.lang.php wrote:

> Env:
>
> Windows XP, Apache 1.33, PHP 5.2.0
>
> [PHP]
> <?
> echo is_dir($_SERVER['DOCUMENT_ROOT']) . " for dir = " .
> $_SERVER['DOCUMENT_ROOT']);
> ?>
> [/PHP]
>
> Produces
> [quote]
> for dir = C:/program files/apache group/apache/htdocs
> [/quote]
>
> Why is it in Windows that this occurs? What can I do to circumvent
> this?
>
> Thanx
> Phil

Hi,

Put error on, and you'll see why.
Your line contains an error: the closing ) at the end.

FOr me on win2000/IIS5 it produces a 1 (true).

Also be aware that a false doesn't produce any output in this way.

Regards,
Erwin Moller

 

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

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