note 88056 added to function.set-include-path

From: Date: Thu, 08 Jan 2009 01:21:17 +0000
Subject: note 88056 added to function.set-include-path
Groups: php.notes 
Request: Send a blank email to php-notes+get-148935@lists.php.net to get a copy of this message
The files are included in order of the inclusion path, in this example, the directory structure is as follows: . |-- index.php |-- t1 | |-- a | `-- b `-- t2 |-- b `-- c <?php set_include_path('t1'.PATH_SEPARATOR.'t2'); include 'a'; // includes from T1 include 'b'; // includes from T1 include 'c'; // includes from T2 ?> Note that the include path affects only include/require functions. <?php var_dump(file_exists('a')); // false var_dump(fopen('b', 'r')); // file not found ?> ---- Server IP: 82.160.94.10 Probable Submitter: 78.88.223.42 ---- Manual Page -- http://www.php.net/manual/en/function.set-include-path.php Edit -- https://master.php.net/note/edit/88056 Del: integrated -- https://master.php.net/note/delete/88056/integrated Del: useless -- https://master.php.net/note/delete/88056/useless Del: bad code -- https://master.php.net/note/delete/88056/bad+code Del: spam -- https://master.php.net/note/delete/88056/spam Del: non-english -- https://master.php.net/note/delete/88056/non-english Del: in docs -- https://master.php.net/note/delete/88056/in+docs Del: other reasons-- https://master.php.net/note/delete/88056 Reject -- https://master.php.net/note/reject/88056 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148935) next »