note 98306 added to function.getcwd
| From: | dan at ziemecki dot com | Date: | Tue, 08 Jun 2010 13:18:43 +0000 |
| Subject: | note 98306 added to function.getcwd | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169937@lists.php.net to get a copy of this message | ||
Many people looking at this function are probably more interested in the directory the file is
stored in than in the "working" directory. I've found this tends to arrive at that
answer fairly well:
explode('/', dirname($_SERVER['PHP_SELF']))
----
Server IP: 69.147.83.197
Probable Submitter: 24.99.187.86
----
Manual Page -- http://www.php.net/manual/en/function.getcwd.php
Edit -- https://master.php.net/note/edit/98306
Del: integrated -- https://master.php.net/note/delete/98306/integrated
Del: useless -- https://master.php.net/note/delete/98306/useless
Del: bad code -- https://master.php.net/note/delete/98306/bad+code
Del: spam -- https://master.php.net/note/delete/98306/spam
Del: non-english -- https://master.php.net/note/delete/98306/non-english
Del: in docs -- https://master.php.net/note/delete/98306/in+docs
Del: other reasons-- https://master.php.net/note/delete/98306
Reject -- https://master.php.net/note/reject/98306
Search -- https://master.php.net/manage/user-notes.php