note 47546 added to function.realpath

From: Date: Fri, 19 Nov 2004 17:37:42 +0000
Subject: note 47546 added to function.realpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-80771@lists.php.net to get a copy of this message
sarizmendi is right, and this is very frustrating. I'm trying to use a script with a different virtual root, which process folders/contents. This works perfectly with asp's server.mappath() but realpath() fails, because it's mapping to the same doc root (C:\inetpub\wwwroot) when it should be from a different virtual path (i.e. D:\content). Although I could force this to the static path, I'm trying to use it with a $_GET, and this could point to any of a number of virtual roots. ---- Manual Page -- http://www.php.net/manual/en/function.realpath.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47546 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47546&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47546&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47546&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47546&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47546&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47546&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47546&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80771) next »