For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > July 2007 > Regarding PEAR Package









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Regarding PEAR Package
Reshmi Brahmait

2007-07-19, 4:03 am

hello,

I am using PHP 5.1.3.Now i want to authenticate the mails.I am trying to
use code that reqires PEAR Mail Package.I jhave downloaded the package
called Mail.but with that its not working properly.its showing error given
below


"*Warning*: require_once(PEAR.php)
[function.require-once<http://brahmaa04/smsalumini/scripts...on.require-once>]:
failed to open stream: No such file or directory in *
C:\wamp\www\SMSALUMINI\scripts\Mail\Mail
.php* on line *21*

*Fatal error*: require_once()
[function.require<http://brahmaa04/smsalumini/scripts/function.require>]:
Failed opening required 'PEAR.php' (include_path='.;C:\php5\pear') in *
C:\wamp\www\SMSALUMINI\scripts\Mail\Mail
.php* on line *21"

*I haven't find PEAR.php in the mail packages.

What further steps i have to.....Please tell me more the PEAR package...


regards
Reshmi

Daniel Stosch

2007-07-19, 4:03 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com