|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Installing PEAR
I'm new to this -- be kind ;)
I finally got PHP working with Windows, IIS, MySQL. I believe this is known as a WIMP installation. I then learned I would need Pear working as well. After struggling for a week with php-5.2.0-Win32.zip, I finally found a site acknowledging the errors I was getting and downloaded php-5.2.1-Win32.zip. This actually installed -- which I recorded as progress. I then ran go-pear.bat, downloaded and ran go-pear.php, which also seemed to run fine. I have PHP and Pear loaded in the directories C:php and C:phppear I am specifically looking to use Pear for mail, and so I ran a sample script -- <?php include("Mail.php"); $recipients = "me@me.com"; $headers["From"] = "form@me.com"; $headers["To"] = "me@me.com"; $headers["Subject"] = "Form Response"; $mailmsg = "Test Mail"; $smtpinfo["host"] = "smtpout.secureserver.net"; $smtpinfo["port"] = "25"; $smtpinfo["auth"] = true; $smtpinfo["username"] = "form@me.com"; $smtpinfo["password"] = "password"; $mail_object =& Mail::factory("smtp", $smtpinfo); $mail_object->send($recipients, $headers, $mailmsg); echo "Finished"; ?> Here's the response I get when I run in the browser -- Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:Inetpubwwwroottestpear.php on line 2 Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;c:php;c:phppear') in C:Inetpubwwwroottestpear.php on line 2 Any ideas? |
|
#2
|
|||
|
|||
|
RE: Installing PEAR
Try this in cmd: pear install db
This will install the required DB package. If you already have installed DB, then it might be a path problem. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Installing PEAR |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|