note 111954 added to function.set-include-path
| From: | ZsoltSzilagyi | Date: | Wed, 17 Apr 2013 09:11:51 +0000 |
| Subject: | note 111954 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194502@lists.php.net to get a copy of this message | ||
Commonly used is
set_include_path(get_include_path() . PATH_SEPARATOR . '/myclasses'); to extend include
path.
Consider turning around to
set_include_path('/myclasses' . PATH_SEPARATOR . get_include_path());
That way the place where you expect your files is scanned first, improving performance.
----
Server IP: 69.147.83.199
Probable Submitter: 80.153.65.233
----
Manual Page -- http://php.net/manual/en/function.set-include-path.php
Edit -- https://master.php.net/note/edit/111954
Del: integrated -- https://master.php.net/note/delete/111954/integrated
Del: useless -- https://master.php.net/note/delete/111954/useless
Del: bad code -- https://master.php.net/note/delete/111954/bad+code
Del: spam -- https://master.php.net/note/delete/111954/spam
Del: non-english -- https://master.php.net/note/delete/111954/non-english
Del: in docs -- https://master.php.net/note/delete/111954/in+docs
Del: other reasons-- https://master.php.net/note/delete/111954
Reject -- https://master.php.net/note/reject/111954
Search -- https://master.php.net/manage/user-notes.php