note 68135 deleted from function.realpath by nlopess

From: Date: Tue, 25 Jul 2006 11:31:08 +0000
Subject: note 68135 deleted from function.realpath by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115135@lists.php.net to get a copy of this message
Note Submitter: ---- 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.

« previous php.notes (#115135) next »