note 38162 added to function.getcwd

From: Date: Wed, 10 Dec 2003 15:14:17 +0000
Subject: note 38162 added to function.getcwd
Groups: php.notes 
Request: Send a blank email to php-notes+get-61742@lists.php.net to get a copy of this message
getcwd() returns the path of the "main" script referenced in the URL. dirname(__FILE__) will return the path of the script currently executing. I had written a script that required several class definition scripts from the same directory. It retrieved them based on filename matches and used getcwd to figure out where they were. Didn't work so well when I needed to call that first script from a new file in a different directory. ---- Manual Page -- http://www.php.net/manual/en/function.getcwd.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38162 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38162&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38162&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61742) next »