note 93075 deleted from function.getcwd by danbrown

From: Date: Fri, 21 Aug 2009 19:23:00 +0000
Subject: note 93075 deleted from function.getcwd by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159765@lists.php.net to get a copy of this message
Note Submitter: chuck dot reeves at gmail dot com ---- in response to leonbrussels at gmail dot com, You can use realpath to accomplish the same goal and it saves processing by avoiding changing the directory ex <?php $path = realpath('/home/www/somefolder/../someotherfolder/../'); ?>

« previous php.notes (#159765) next »