note 99351 added to function.set-include-path
| From: | tomatrdotje at osu1 dot php dot net | Date: | Thu, 12 Aug 2010 11:27:57 +0000 |
| Subject: | note 99351 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171598@lists.php.net to get a copy of this message | ||
You are not able to add "../" to the include path, adding it has no effect and does not
allow you to include files up a level. You must explicitly state the full path.
You can work out the full path using:
$path = substr(getcwd(), 0, strlen(getcwd())-strpos(DIRECTORY_SEPARATOR, strrev(getcwd())));
----
Server IP: 69.147.83.197
Probable Submitter: 195.149.46.150
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- https://master.php.net/note/edit/99351
Del: integrated -- https://master.php.net/note/delete/99351/integrated
Del: useless -- https://master.php.net/note/delete/99351/useless
Del: bad code -- https://master.php.net/note/delete/99351/bad+code
Del: spam -- https://master.php.net/note/delete/99351/spam
Del: non-english -- https://master.php.net/note/delete/99351/non-english
Del: in docs -- https://master.php.net/note/delete/99351/in+docs
Del: other reasons-- https://master.php.net/note/delete/99351
Reject -- https://master.php.net/note/reject/99351
Search -- https://master.php.net/manage/user-notes.php