note 79627 added to function.set-include-path
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 06 Dec 2007 01:59:06 +0000 |
| Subject: | note 79627 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132869@lists.php.net to get a copy of this message | ||
If you are using a CGI install you cannot use the htaccess solution. You could try something like
this:
$user = preg_match('/\/([\w]+)\/www\//', __FILE__, $matches);
$user = $matches[1];
$path = "/u/$user/includes";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
----
Server IP: 216.235.15.211
Probable Submitter: 142.104.13.51
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- https://master.php.net/note/edit/79627
Del: integrated -- https://master.php.net/note/delete/79627/integrated
Del: useless -- https://master.php.net/note/delete/79627/useless
Del: bad code -- https://master.php.net/note/delete/79627/bad+code
Del: spam -- https://master.php.net/note/delete/79627/spam
Del: non-english -- https://master.php.net/note/delete/79627/non-english
Del: in docs -- https://master.php.net/note/delete/79627/in+docs
Del: other reasons-- https://master.php.net/note/delete/79627
Reject -- https://master.php.net/note/reject/79627
Search -- https://master.php.net/manage/user-notes.php