Re: Re: Regarding PEAR Package

From: Date: Thu, 19 Jul 2007 07:45:31 +0000
Subject: Re: Re: Regarding PEAR Package
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47632@lists.php.net to get a copy of this message
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.patternsforphp.com ----- Original Message ---- From: Daniel Stosch <dstosch@swapimage.com> To: pear-general@lists.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["DOCUMENT_ROOT"].'/includes/pear'.$pd.$_SERVER["DOCUMENT_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/

« previous php.pear.dev (#47632) next »