FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Technical Support » PHP Hosting

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 11-06-11, 12:54 PM
Gee Gee is offline
new member
 
Join Date: May 2007
Posts: 6
Default Mail_mime pear and include paths

Hi,

I've installed the Mail_Mime package in pear but the my code cannot find the class to use. the following line fails as it cannot find Mail.php.
PHP Code:
require_once("Mail.php"); 
if I try the following line without any includes/requies, the class is not found.
PHP Code:
$mime = new Mail_mime($crlf); 
I thought cpanel says you do not have to modify and include paths for pear classes to work?

the only way i can get it to work is to manually download the classes and put them locally.

aside (and bad message board etiquate):

should I be able to call Zend libraries, or again, do I have to download these manually?

thanks in advance.

Gee
Reply With Quote

  #2 (permalink)  
Old 12-06-11, 08:43 AM
Ross's Avatar
Sales Team
 
Join Date: Nov 2010
Posts: 377
Send a message via MSN to Ross Send a message via Skype™ to Ross
Default

You were getting this error because the file 'Mail.php' was not at the location where the script is searching for. We have copied the file to that location now. You can check if the script if running fine or not. If you still have any issues you can initiate a Live chat to email us at support@webhosting.uk.com, so that we can assist you in a better way.
__________________
Webhosting UK :: Reseller Hosting | Fully Managed Dedicated Server
"Refer and Win " a Hosting package and domain name
Follow us on Social Networks like Facebook, Twitter and Google+
Reply With Quote

  #3 (permalink)  
Old 12-06-11, 10:57 AM
Gee Gee is offline
new member
 
Join Date: May 2007
Posts: 6
Default

thanks for the help. that has made
PHP Code:
require('Mail.php'
work, but mime.php isn't there either.

should installing the Pear module put all the files in the correct place without any intevention from yourself?

thanks again
Reply With Quote

  #4 (permalink)  
Old 12-06-11, 11:09 AM
Ross's Avatar
Sales Team
 
Join Date: Nov 2010
Posts: 377
Send a message via MSN to Ross Send a message via Skype™ to Ross
Default

We have copied 'mime.php' also to that location and have installed mail_mime module on your account. It should work now. Please let us know if you still have any issues.
__________________
Webhosting UK :: Reseller Hosting | Fully Managed Dedicated Server
"Refer and Win " a Hosting package and domain name
Follow us on Social Networks like Facebook, Twitter and Google+
Reply With Quote

  #5 (permalink)  
Old 12-06-11, 11:26 AM
Gee Gee is offline
new member
 
Join Date: May 2007
Posts: 6
Default

That did not fix it.

PHP Code:
require('mime.php'
fails with "cannot find file"
thanks
Reply With Quote

  #6 (permalink)  
Old 12-06-11, 11:32 AM
Ross's Avatar
Sales Team
 
Join Date: Nov 2010
Posts: 377
Send a message via MSN to Ross Send a message via Skype™ to Ross
Default

For me its working fine
------------------------------------------
root@firefly [~]# pear list-all | grep Mime
pear/Mail_Mime 1.8.1 1.8.1 Mail_Mime provides classes to create MIME messages.
-----------------------------------------------
If you are facing any issues, I would suggest you initiate a Live chat. Our support staff will assist you in this.
__________________
Webhosting UK :: Reseller Hosting | Fully Managed Dedicated Server
"Refer and Win " a Hosting package and domain name
Follow us on Social Networks like Facebook, Twitter and Google+
Reply With Quote

  #7 (permalink)  
Old 15-06-11, 08:39 PM
Gee Gee is offline
new member
 
Join Date: May 2007
Posts: 6
Default

This was working but when I came back a few days later, it is not. I'm on chat with help but not getting very far...

there seems to be no reference to Mail.php or mime.php
Reply With Quote

  #8 (permalink)  
Old 16-06-11, 03:40 AM
Ross's Avatar
Sales Team
 
Join Date: Nov 2010
Posts: 377
Send a message via MSN to Ross Send a message via Skype™ to Ross
Default

I will check with our support team once again and send you a PM accordingly.
__________________
Webhosting UK :: Reseller Hosting | Fully Managed Dedicated Server
"Refer and Win " a Hosting package and domain name
Follow us on Social Networks like Facebook, Twitter and Google+
Reply With Quote

  #9 (permalink)  
Old 28-07-11, 10:44 PM
new member
 
Join Date: Jul 2011
Posts: 2
Default

I also have had the same problem - cpanel copies the scripts to /home/user/php directory - this must be inefficient on a shared server, why not in the default usr/lib/share or add the path to php.ini ?

To work round I use set_include_path() function at start of script - a bit inefficient.
Reply With Quote

  #10 (permalink)  
Old 26-08-11, 03:20 PM
new member
 
Join Date: Aug 2011
Posts: 1
Default

As with the above posters, I am to having difficulty with the Pear Module mail_mime.

Cpanel installs the module in perfectly well into the folder /php/Mail/mime.php. All scripts reference that the mime.php is located in this file and always call it using include('Mail/mime.php');

But for the life of me I cannot seem to get this to work. The scripts do not acknowledge the existence of mime.php. Mail.php works perfectly well but mime.php does not work and i require this to send HTML emails!

Live Chat was no hope. Apparently they do not see this as a server side issue. All the scripts and tutorials reference the mail_mime script to be located at Mail/mime.php but if you use require_once, the script fails. If you use include, the script fails as soon as it hits something that calls the class in mime.php such as:

$message = new Mail_mime(array('eol' => $crlf));

From what I read online, it could a few things. No clue if it helps:
- Restart apache server
- Pear is out of date
- include path is incorrect (this one cannot be true as Mail.php works?)
- There is an error in mine.php script (this cannot be true either as I downloaded a copy from pear's site and still no luck)

I have tried using different paths, moved the files up one directory but still no go. At a loss!

Any advice would be great!!
Reply With Quote

  #11 (permalink)  
Old 26-08-11, 04:58 PM
System Administrator
 
Join Date: Aug 2007
Posts: 10
Default

Hello,

To me, it seems to be issue with the include path in php.
Could you please pm me your domain name or the exact URL for your script, I will check it for you.
Reply With Quote

Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 08:23 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials