Jump to content


Photo

PEAR Help


  • Please log in to reply
2 replies to this topic

#1 sseeley

sseeley

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts

Posted 11 November 2013 - 03:45 AM

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



#2 trq

trq

    Advanced Member

  • Administrators
  • 30,892 posts
  • LocationSydney, Australia.

Posted 11 November 2013 - 06:09 AM

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.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#3 AaronClifford

AaronClifford

    Member

  • Members
  • PipPip
  • 14 posts

Posted 18 November 2013 - 07:17 AM

As far as I'm aware you don't need to specify the path like that, take a look at the check sheet for installation.

http://pear.php.net/manual/en/installation.checking.php





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com