note 73692 added to function.set-include-path
| From: | chris-r3i at osu1 dot php dot net | Date: | Tue, 06 Mar 2007 22:35:29 +0000 |
| Subject: | note 73692 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124177@lists.php.net to get a copy of this message | ||
Can be useful to check the value of the constant PATH_SEPARATOR.
if ( ! defined( "PATH_SEPARATOR" ) ) {
if ( strpos( $_ENV[ "OS" ], "Win" ) !== false )
define( "PATH_SEPARATOR", ";" );
else define( "PATH_SEPARATOR", ":" );
}
For older versions of php, PATH_SEPARATOR is not defined.
If it is so, we must check what kind of OS is on the web-server and define PATH_SEPARATOR properly
----
Server IP: 69.147.83.197
Probable Submitter: 87.20.146.176
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- https://master.php.net/note/edit/73692
Del: integrated -- https://master.php.net/note/delete/73692/integrated
Del: useless -- https://master.php.net/note/delete/73692/useless
Del: bad code -- https://master.php.net/note/delete/73692/bad+code
Del: spam -- https://master.php.net/note/delete/73692/spam
Del: non-english -- https://master.php.net/note/delete/73692/non-english
Del: in docs -- https://master.php.net/note/delete/73692/in+docs
Del: other reasons-- https://master.php.net/note/delete/73692
Reject -- https://master.php.net/note/reject/73692
Search -- https://master.php.net/manage/user-notes.php