note 36194 deleted from function.set-include-path by sean

From: Date: Mon, 18 Oct 2004 15:05:19 +0000
Subject: note 36194 deleted from function.set-include-path by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78723@lists.php.net to get a copy of this message
Note Submitter: giovanni at giacobbi dot net ---- You can append (or prepend, with proper changes) a directory to your include path and preserve the original one this way: <?php $new_include_dir = "/home/user/php_includes"; print get_include_path() . "\n"; set_include_path(get_include_path() . ":" . $new_include_dir); print get_include_path() . "\n"; ?> Output is: .:/usr/local/lib/php .:/usr/local/lib/php:/home/user/php_includes Just remember that directories are separated by ':' ---- Reason: useless example

« previous php.notes (#78723) next »