List Info

Thread: Re: Regarding PEAR Package




Re: Regarding PEAR Package
user name
2007-07-19 02:45:31
Or just use PATH_SEPARATOR constant ;), of course assuming
5.1.3 has it.

set_include_path(
    'path/to/pear/directory' . PATH_SEPARATOR
    . get_include_path()
);

You can use similar code in your application, or edit the
php.ini file directly instead (if you have access to it).

You may want to install your own separate copy of PEAR if
your system doesn't include it already with the PHP
installation.
http://www.go-pear.org/manual/en/installation.shared.php

 
Pádraic Brady
http://blog.astrumfutura
.com
http://www.patternsforp
hp.com


----- Original Message ----
From: Daniel Stosch <dstoschswapimage.com>
To: pear-generallists.php.net
Sent: Thursday, July 19, 2007 8:06:49 AM
Subject: [PEAR] Re: Regarding PEAR Package

set the correct path to your pear directory:

if (PHP_OS == "WINNT" || PHP_OS ==
"WIN32") {$pd = ";";} else {$pd =
":";}
if ( isset($HTTP_ENV_VARS["windir"]) > 0) 
strlen($HTTP_ENV_VARS["windir"]) > 0 ? $pd =
";" : $pd = ":";
ini_set('include_path','./'.$pd.'../'.$pd.$_SERVER["DOC
UMENT_ROOT"].'/includes/pear'.$pd.$_SERVER["DOCUME
NT_ROOT"].'/includes/'.$pd);

daniel

-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php








       
____________________________________________________________
________________________
Moody friends. Drama queens. Your life? Nope! - their life,
your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/ 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )