note 40378 deleted from function.set-include-path by nlopess
| From: | nlopess@php.net | Date: | Tue, 02 Mar 2004 15:19:31 +0000 |
| Subject: | note 40378 deleted from function.set-include-path by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66106@lists.php.net to get a copy of this message | ||
Note Submitter: kevin@kevinjamieson.com
----
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');
?>