ID: 44293 User updated by: mmichel at chez dot com Reported By: mmichel at chez dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Win2003 PHP Version: 5.2.5 New Comment:
> Try adding the trailing slash in the directory.. No change. Previous Comments: ------------------------------------------------------------------------ [2008-03-03 14:48:34] [EMAIL PROTECTED] Try adding the trailing slash in the directory.. ------------------------------------------------------------------------ [2008-03-03 14:31:58] mmichel at chez dot com Addendum from my 3 Mar 1:56pm UTC comment: Whilst php is able to give me the realpath of the script http://localhost/elsewhere/test.php , asking for the realpath of http://localhost/elsewhere in the http://localhost/local/test.php script fails. ------------------------------------------------------------------------ [2008-03-03 14:17:37] mmichel at chez dot com @jani: typo was in the comment, not in my code. I checked :-) ------------------------------------------------------------------------ [2008-03-03 13:56:32] mmichel at chez dot com @jani: Virtual dir is kind of a symlink handled by IIS rather than the OS. Thus, the document_root for http://localhost/elsewhere/test.php is different from the one for http://localhost/local/test.php Still, browsing to http://localhost/elsewhere works, and executing http://localhost/elsewhere/test.php works. ------------------------------------------------------------------------ [2008-03-03 13:46:00] [EMAIL PROTECTED] . . $check_path=realpath($virt); print ($checkpath === FALSE) ? "virtual dir not recognized<br>" : . . That's your code, note the tiny typo there? :) >From the manual: realpath() returns FALSE on failure, e.g. if the file does not exist. I don't know what these 'Virtual dirs' are in IIS, but I guess they're not _filesystem_ things. realpath() is meant to be used with _filesystem_.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/44293 -- Edit this bug report at http://bugs.php.net/?id=44293&edit=1
