473,788 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PEAR Package not found by PHP Script

snowdonkey
37 New Member
I'm trying to use the Mail package from PEAR in a script that sends an e-mail over SMTP. The problem is that the Mail class in Mail.php provided by the package isn't found by the script. I'm using:

[PHP]require_once "Mail.php";[/PHP]

and I get the messages:

Warning: require_once(Ma il.php) [function.requir e-once]: failed to open stream: No such file or directory in D:\Program Files\Apache 2.2.3\htdocs\tp t\send_mail.php on line 12

Fatal error: require_once() [function.requir e]: Failed opening required 'Mail.php' (include_path=' .;C:\php5\pear' ) in D:\Program Files\Apache 2.2.3\htdocs\tp t\send_mail.php on line 12
I've made sure that include_path in my php.ini file is directed to my PEAR folder containing pear.bat. It looks like this (I've tried different capitalizations ):

; Windows: "\path1;\pa th2"
include_path = ".;c:\php5\pear "

I tried setting the include path in the script instead using ini_set() and that didn't work either. Neither did explicitly saying [PHP]require_once "c:\php5\pear\p ear.Mail.php".[/PHP]

The PEAR package is in the system PATH and I verified its installation with "pear list" in the command console. I'm running Windows XP SP2, PHP 5.2.0, and Apache 2.2.3. Thanks!
Jan 3 '07 #1
0 3549

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4004
by: Louis Aslett | last post by:
Hi, I am extremely stuck trying to port a PHP app from one server to another while making use of the PEAR Mail_mimeDecode package. We have just upgraded from RedHat 7.x to RedHat Enterprise Linux ES Basic v3 because of the end-of-life statement from RedHat. Basically, this means a change from Apache 1.3 to 2 and PHP 4.1.2 to 4.3.2. After initial problems getting Mail_mimeDecode to return any attachments to emails I downloaded and...
1
2391
by: marks | last post by:
I get the same error trying to install any pear package if it's not alreay installed. # pear install Net_SMTP no signature found for package.info(string,string,bool) # pear -V PEAR Version: 1.3.3 PHP Version: 5.0.3 Zend Engine Version: 2.0.3
3
7246
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts it tells mea it can not run pear/soap, because it can not be found.the book im learning form does not tell me how to install or configure this extension. so now im looking for help.
2
3053
by: David | last post by:
I have a book which had code that includes the line: require 'DB.php'; I know that this is from the PEAR code modules, but when I downloaded them and unpacked the directory, they "DB.php" module does not exist. Is this out of date or do I need to go somewhere else to get this extra module? Thanks
3
32444
by: joshua.wehner | last post by:
I can't seem to get PEAR to work, but I think it's installed. Any ideas? phpinfo() says '--with-pear=/usr/local/apache/php-pear' $ which pear /usr/local/bin/pear $ pear list Installed packages: ===================
1
7842
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I included everything in case there is something there that's helpful. I'm trying to install PEAR so that I can use PHPUnit. Thanks for the help!!!!
2
2460
by: jhalaseh | last post by:
Hello, Was wondering if anyone could help me out with a bit of wierd prob. I have pear installed in a UNIX box, with PHP 5.1.2. I'm trying to install some packages by running pear install package.tgz, but always end up with something like .... pear/XML_Parser requires package "pear/PEAR" No valid packages found install failed
3
9298
by: Anthony Smith | last post by:
I always get this message. No matter what package $ pear install Date PHP Warning: Module 'oci8' already loaded in Unknown on line 0 No releases available for package "pear.php.net/Date" Cannot initialize 'Date', invalid or missing package file Package "Date" is not valid install failed
1
2531
by: luftikus143 | last post by:
Hi there, I would say that the PEAR package is correctly installed. I added the OLE package ( $ pear install OLE ) and the PEAR Spreadsheet Excel Writer ( $ pear install Spreadsheet_Excel_Writer ), but my PHP script is still telling me: Warning: main(Spreadsheet/Excel/Writer.php) : failed to open stream: No such file or directory in XXXX Fatal error: main() : Failed opening required 'Spreadsheet/Excel/Writer.php'...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.