note 46467 deleted from function.realpath by nlopess

From: Date: Wed, 13 Oct 2004 13:46:26 +0000
Subject: note 46467 deleted from function.realpath by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78487@lists.php.net to get a copy of this message
Note Submitter: louis ât mulliemedia.com ---- It is often useful to know if a relative path is below another one : <?php function isBelow($path, $root) { $_absPath = realpath($path); $_absRoot = realpath($root); return (strlen($_absPath) < strlen($_absRoot)); } ?> ---- Reason: useless example

« previous php.notes (#78487) next »