note 88356 added to function.getcwd
| From: | bvidinli at gmail dot com | Date: | Wed, 21 Jan 2009 09:13:24 +0000 |
| Subject: | note 88356 added to function.getcwd | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149575@lists.php.net to get a copy of this message | ||
if you link your php to /bin/linkedphp and your php is at for ex /home/actual.php
when you run linkedphp in somewhere in your filesystem,
getcwd returns /bin instead of working dir,
solution: use dirname(__FILENAME__) instead
----
Server IP: 69.147.83.197
Probable Submitter: 212.156.230.30
----
Manual Page -- http://www.php.net/manual/en/function.getcwd.php
Edit -- https://master.php.net/note/edit/88356
Del: integrated -- https://master.php.net/note/delete/88356/integrated
Del: useless -- https://master.php.net/note/delete/88356/useless
Del: bad code -- https://master.php.net/note/delete/88356/bad+code
Del: spam -- https://master.php.net/note/delete/88356/spam
Del: non-english -- https://master.php.net/note/delete/88356/non-english
Del: in docs -- https://master.php.net/note/delete/88356/in+docs
Del: other reasons-- https://master.php.net/note/delete/88356
Reject -- https://master.php.net/note/reject/88356
Search -- https://master.php.net/manage/user-notes.php