From 58d70e983486ccefad435f1d5e5fbfbdb274ec7c Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 18 Jun 2003 18:14:43 +0000 Subject: [PATCH 1/1] Se agrega un archivo con funciones de uso general. La primera y unica funcion por ahora es prepend_include_path() que sirve para agregar un path al include path. --- lib/general.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/general.php diff --git a/lib/general.php b/lib/general.php new file mode 100644 index 0000000..057f02b --- /dev/null +++ b/lib/general.php @@ -0,0 +1,33 @@ + | +// +----------------------------------------------------------------------+ +// +// $Id$ +// + +/** + * Agrega un path al include path. + * + * @param string $ip Include path a agregar antes del actual. + */ +function prepend_include_path($ip) { + $old = ini_get('include_path'); + ini_set('include_path', "$ip:$old"); +} + +?> -- 2.43.0