|
Posted by comp.lang.php on 01/08/07 10:24
Erwin Moller wrote:
> 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).
>
Sorry for me it still produces a false; took out the closing ) which I
put in by mistake, but I still get false. No errors, no warnings, no
notices, even with error_reporting(E_ALL); and display_errors(true);
> Also be aware that a false doesn't produce any output in this way.
>
> Regards,
> Erwin Moller
Navigation:
[Reply to this message]
|