PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
"No such file or directory in ..." What causes thi

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
kris



Joined: 20 Sep 2010
Posts: 1

PostPosted: Tue Sep 21, 2010 12:01 am    Post subject: "No such file or directory in ..." What causes thi Reply with quote

I installed PEAR and the Mail package.
I use it for my contact page on my website but it doesn't work.
I keep getting the following error :

include_path = .:/usr/local/php5/lib/php:/home/content/35/1289395/html/mywebsite/pear_admin/PEAR/Mail/
Warning: include(Mail.php) [function.include]: failed to open stream: No such file or directory in /home/content/35/1289395/html/mywebsite/form.php on line 64

PEAR is as you can see installed in pear_admin
So it's not in the root.
I use php5.ini in my root folder to make sure php for my contact page knows where to look for PEAR

The path in my php5.ini is
include_path = .:/usr/local/php5/lib/php:/home/content/35/1289395/html/mywebsite/pear_admin/PEAR
I tried that with quotes as well

In my PHP code for my contact page I use
include "Mail.php";
and I tried require_once (“Mail.php”); as well
Both give me the same error.

One last thing. I am using .htaccess and .htpaswd to secure PEAR
I was told this shouldn't be a problem because everything runs on the same server, even if it's in a different directory.


Any idea what's wrong here?
PHP locates the php5.ini but then it goes wrong.
Is my path wrong?

Didn't I install the Mail package like I should?
Is it not as simple as going to the list with packages, click on the package Mail and click on the Install package link ? Is there more to it ?

I could really use some help.

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement