Jump to content

PEAR Help


sseeley

Recommended Posts

I am hoping that someone can help me. I have installed PEAR onto my Godaddy account, but I am not getting any luck when I am trying to get working. 

 

I have a really simply file to begin testing.

<?php

include ('/PEAR/Mail.php');

?>

When I run the file I get the following errors.

 

Warning: include(/PEAR/Mail.php) [function.include]: failed to open stream: No such file or directory in /home/content/97/5783497/html/emailTest.php on line 2

Warning: include() [function.include]: Failed opening '/PEAR/Mail.php' for inclusion (include_path='.:/usr/local/php5/lib/php:./PEAR') in /home/content/97/5783497/html/emailTest.php on line 2

 

PEAR is installed into /PEAR/

 

My PHP5.ini file has the following.

cgi.fix_pathinfo = 1
include_path = .:/usr/local/php5/lib/php:./PEAR
SMTP = relay-hosting.secureserver.net
smtp_port = 25

Can any one suggest any help I would be really grateful.

 

Regards

 

Stuart

Link to comment
Share on other sites

PEAR is installed into /PEAR/

Really? That seems a silly place to install it. You really installed it into the root of the filesystem?

 

You didn't, or PHP would be able to find it there. Using the include statement you are using yoiu wouldn't even need to edit your include_path.

 

First thing first, find where you actually installed PEAR to.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.