note 40378 added to function.set-include-path
| From: | kevin at kevinjamieson dot com | Date: | Tue, 02 Mar 2004 00:12:12 +0000 |
| Subject: | note 40378 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66068@lists.php.net to get a copy of this message | ||
Note that if you're writing an application that may be deployed on both *nix and Windows,
you'll need to set the separator between directories depending on the platform (it's
";" on Windows and ":" on other platforms). E.g.,
<?php
define('ENV_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ?
';' : ':');
set_include_path(get_include_path() . ENV_SEPARATOR . 'foobar');
?>
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40378
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40378&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40378&report=yes
Search -- http://master.php.net/manage/user-notes.php