note 68135 added to function.realpath

From: Date: Fri, 14 Jul 2006 16:21:02 +0000
Subject: note 68135 added to function.realpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-114781@lists.php.net to get a copy of this message
realpath() needs to be given a second argument that would permit use of the function on non-existent files. It is frequently required that extra path data (., ./, ../, etc.) be removed from data, but in cases where the file doesn't exist on the machine. Would be nice to do <? realpath('/usr/rbin/../', true) ?> and have it give '/usr' as the return value, even if /usr/rbin (or even /usr) does not exist. ---- Server IP: 216.235.15.211 Probable Submitter: 142.179.205.97 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.realpath.php Edit -- http://master.php.net/note/edit/68135 Del: integrated -- http://master.php.net/note/delete/68135/integrated Del: useless -- http://master.php.net/note/delete/68135/useless Del: bad code -- http://master.php.net/note/delete/68135/bad+code Del: spam -- http://master.php.net/note/delete/68135/spam Del: non-english -- http://master.php.net/note/delete/68135/non-english Del: in docs -- http://master.php.net/note/delete/68135/in+docs Del: other reasons-- http://master.php.net/note/delete/68135 Reject -- http://master.php.net/note/reject/68135 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114781) next »