note 79627 deleted from function.set-include-path by danbrown

From: Date: Sun, 20 Jul 2008 01:05:00 +0000
Subject: note 79627 deleted from function.set-include-path by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141886@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- 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);

« previous php.notes (#141886) next »