|
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]
|