PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 18th, 2007, 06:50 PM
feeinc feeinc is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tempe
Posts: 1 feeinc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old March 2nd, 2007, 04:07 PM
040567 040567 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 040567 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Installing PEAR


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT