ID: 11640
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: WIN NT
PHP Version: 4.0.6
New Comment:

RTFM.  Realpath is for system paths, $PHP_SELF is relative to the web root.

Previous Comments:
------------------------------------------------------------------------

[2001-06-24 10:27:07] [EMAIL PROTECTED]

Hi 

realpath($PHP_SELF);

doesn't give the same result as 

realpath('index.php');

While the result of the second example is correct, the first one outputs only part of 
the value, in my case:

Correct: d:\inetpub\wwwroot\blue\index.php
Result:  d:\blue\index.php

wwwroot is DOCUMENT_ROOT in my case. 
I use NT4/IIS with PHP as ISAPI (not in safe mode).

Christoph

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=11640&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to