note 93075 added to function.getcwd

From: Date: Fri, 21 Aug 2009 19:17:31 +0000
Subject: note 93075 added to function.getcwd
Groups: php.notes 
Request: Send a blank email to php-notes+get-159764@lists.php.net to get a copy of this message
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/../'); ?> ---- Server IP: 209.41.74.194 Probable Submitter: 12.35.230.2 ---- Manual Page -- http://www.php.net/manual/en/function.getcwd.php Edit -- https://master.php.net/note/edit/93075 Del: integrated -- https://master.php.net/note/delete/93075/integrated Del: useless -- https://master.php.net/note/delete/93075/useless Del: bad code -- https://master.php.net/note/delete/93075/bad+code Del: spam -- https://master.php.net/note/delete/93075/spam Del: non-english -- https://master.php.net/note/delete/93075/non-english Del: in docs -- https://master.php.net/note/delete/93075/in+docs Del: other reasons-- https://master.php.net/note/delete/93075 Reject -- https://master.php.net/note/reject/93075 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159764) next »