note 110222 deleted from function.set-include-path by googleguy

From: Date: Wed, 03 Oct 2012 02:13:14 +0000
Subject: note 110222 deleted from function.set-include-path by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191103@lists.php.net to get a copy of this message
Note Submitter: lpstec at hotmail dot com ---- get paths php.ini, add the new folder paths; 'dirname(__FILE__)' <?php $paths = implode(PATH_SEPARATOR, array_merge( array(dirname(__FILE__)), explode(PATH_SEPARATOR, ini_get('include_path')) )); var_dump($paths); //out paths php.ini and new paths //usage ini_set('include_path', implode(PATH_SEPARATOR, array_merge( array(dirname(__FILE__)), explode(PATH_SEPARATOR, ini_get('include_path')) ))); ?>

« previous php.notes (#191103) next »