note 108084 added to function.set-include-path
| From: | cloxy at cloxy dot com | Date: | Tue, 27 Mar 2012 18:11:58 +0000 |
| Subject: | note 108084 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186872@lists.php.net to get a copy of this message | ||
If you want to include files with their absolute path without changing the current include path, you
can use the magic constant __DIR__ . For example:
<?php include(__DIR__.'/file.php'); ?>
It is available since PHP 5.3.
----
Server IP: 69.147.83.197
Probable Submitter: 91.134.60.72
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- https://master.php.net/note/edit/108084
Del: integrated -- https://master.php.net/note/delete/108084/integrated
Del: useless -- https://master.php.net/note/delete/108084/useless
Del: bad code -- https://master.php.net/note/delete/108084/bad+code
Del: spam -- https://master.php.net/note/delete/108084/spam
Del: non-english -- https://master.php.net/note/delete/108084/non-english
Del: in docs -- https://master.php.net/note/delete/108084/in+docs
Del: other reasons-- https://master.php.net/note/delete/108084
Reject -- https://master.php.net/note/reject/108084
Search -- https://master.php.net/manage/user-notes.php