note 47487 added to function.realpath
| From: | sarizmendi at msn dot com | Date: | Wed, 17 Nov 2004 21:16:36 +0000 |
| Subject: | note 47487 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80671@lists.php.net to get a copy of this message | ||
In PHP 4.3.9 for Windows (running with IIS 5.1), if you try
<?php
$a = realpath("/");
?>
it will always return the root of the drive, not the root of the virtual site (in my case
"C:\"). This breaks the Server.MapPath -like behavior.
----
Manual Page -- http://www.php.net/manual/en/function.realpath.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47487
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47487&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47487&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47487&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47487&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47487&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47487&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47487&report=yes
Search -- http://master.php.net/manage/user-notes.php