note 48520 deleted from function.ini-get by tularis

From: Date: Tue, 28 Dec 2004 09:18:58 +0000
Subject: note 48520 deleted from function.ini-get by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82394@lists.php.net to get a copy of this message
Note Submitter: bishop ---- A little boost to Der Graph's code: function add_to_path($addition, $prefer = true) { $path = ini_get('include_path'); $sep = PATH_SEPARATOR; return ini_set('include_path', ($prefer ? "$addition$sep$path" : "$path$sep$addition")); } Allows you to stick a new file path (in $addition) onto the current include path, either at the front ($prefer == true) or at the rear ($prefer == false). ---- Reason: useless note

« previous php.notes (#82394) next »