note 110222 added to function.set-include-path
| From: | lpstec at hotmail dot com | Date: | Tue, 02 Oct 2012 14:51:27 +0000 |
| Subject: | note 110222 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191099@lists.php.net to get a copy of this message | ||
get paths php.ini, add the new folder paths; 'dirname(__FILE__)'
<?php
$paths = implode(PATH_SEPARATOR, array_merge(
array(dirname(__FILE__)), explode(PATH_SEPARATOR,
ini_get('include_path'))
));
var_dump($paths); //out paths php.ini and new paths
//usage
ini_set('include_path', implode(PATH_SEPARATOR, array_merge(
array(dirname(__FILE__)), explode(PATH_SEPARATOR,
ini_get('include_path'))
)));
?>
----
Server IP: 69.147.83.199
Probable Submitter: 177.44.57.101
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- https://master.php.net/note/edit/110222
Del: integrated -- https://master.php.net/note/delete/110222/integrated
Del: useless -- https://master.php.net/note/delete/110222/useless
Del: bad code -- https://master.php.net/note/delete/110222/bad+code
Del: spam -- https://master.php.net/note/delete/110222/spam
Del: non-english -- https://master.php.net/note/delete/110222/non-english
Del: in docs -- https://master.php.net/note/delete/110222/in+docs
Del: other reasons-- https://master.php.net/note/delete/110222
Reject -- https://master.php.net/note/reject/110222
Search -- https://master.php.net/manage/user-notes.php