Warning: Require_once(Mail.php)
Posted On Fri Oct 03, 2008 By hostman In PHP Forums And Topics Discussions About Hyper Text Programming Language Forums
if you are getting this error on your php script, you probably are trying to run a script by sending email through smpt right. i was trying to do the same thing and i was getting this error too,
basically what you have to do is install the mail pacakage in php pear in order to use this
but how do you install it? installing it is easy
this is how i did it. i logged in as root and send this command:
yum install php-pear-Mail
after the installation was completed, i was able to see the Mail.php in /usr/share/pear/
basically what you have to do is install the mail pacakage in php pear in order to use this
but how do you install it? installing it is easy
this is how i did it. i logged in as root and send this command:
yum install php-pear-Mail
after the installation was completed, i was able to see the Mail.php in /usr/share/pear/
Jason Fri Oct 21, 2011
Thanks so much for this. Worked.
wallpaperama Thu Jan 14, 2010
To: kArLaLa
If you have a Linux server you will need to login to the server using ssh to login to your shell terminal.
if you dont know what the linux shell is or if you dont have access to linux shell on your hosting, then it probably means that you have whats called "Shared Hosting" for your website, it that case you can do two things:
1. ask your host if then can install in in their servers
2. you can download Mail here:
http://pear.php.net/package/Mail
- then upload to your website and when you include it, give the path where you installed it.
for example, if i uploaded to my directory:
/home/users/myuser/public_html/mail/Mail.php
i would put it like this in my php code:
required_once('/home/users/myuser/public_html/mail/Mail.php');
or
include_once('/home/users/myuser/public_html/mail/Mail.php');
you see?
If you have a Linux server you will need to login to the server using ssh to login to your shell terminal.
if you dont know what the linux shell is or if you dont have access to linux shell on your hosting, then it probably means that you have whats called "Shared Hosting" for your website, it that case you can do two things:
1. ask your host if then can install in in their servers
2. you can download Mail here:
http://pear.php.net/package/Mail
- then upload to your website and when you include it, give the path where you installed it.
for example, if i uploaded to my directory:
/home/users/myuser/public_html/mail/Mail.php
i would put it like this in my php code:
required_once('/home/users/myuser/public_html/mail/Mail.php');
or
include_once('/home/users/myuser/public_html/mail/Mail.php');
you see?
kArLaLa Thu Jan 14, 2010
Where am I gonna place the commands?
Darshana Thu Jul 23, 2009
good artical...
wallpaperama Fri Oct 03, 2008
this is what i got:
Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package php-pear-Mail.noarch 0:1.1.14-1.fc6 set to be updated --> Processing Dependency: php-pear(Net_SMTP) >= 1.1.0 for package: php-pear-Mail --> Running transaction check ---> Package php-pear-Net-SMTP.noarch 0:1.3.0-1.fc7 set to be updated --> Processing Dependency: php-pear(Net_Socket) >= 1.0.7 for package: php-pear-Net-SMTP --> Processing Dependency: php-pear(Auth_SASL) for package: php-pear-Net-SMTP --> Running transaction check ---> Package php-pear-Net-Socket.noarch 0:1.0.8-1.fc7 set to be updated ---> Package php-pear-Auth-SASL.noarch 0:1.0.2-4.fc6 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: php-pear-Mail noarch 1.1.14-1.fc6 fedora 26 k Installing for dependencies: php-pear-Auth-SASL noarch 1.0.2-4.fc6 fedora 10 k php-pear-Net-SMTP noarch 1.3.0-1.fc7 updates 16 k php-pear-Net-Socket noarch 1.0.8-1.fc7 fedora 12 k Transaction Summary ============================================================================= Install 4 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 63 k Is this ok [y/N]: y Downloading Packages: (1/4): php-pear-Mail-1.1. 100% |=========================| 26 kB 00:00 (2/4): php-pear-Auth-SASL 100% |=========================| 10 kB 00:00 (3/4): php-pear-Net-SMTP- 100% |=========================| 16 kB 00:00 (4/4): php-pear-Net-Socke 100% |=========================| 12 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: php-pear-Auth-SASL ######################### [1/4] Installing: php-pear-Net-Socket ######################### [2/4] Installing: php-pear-Net-SMTP ######################### [3/4] Installing: php-pear-Mail ######################### [4/4] Installed: php-pear-Mail.noarch 0:1.1.14-1.fc6 Dependency Installed: php-pear-Auth-SASL.noarch 0:1.0.2-4.fc6 php-pear-Net-SMTP.noarch 0:1.3.0-1.fc7 php-pear-Net-Socket.noarch 0:1.0.8-1.fc7 Complete!
Related Content
Information
Forums »
PHP Forums And Topics Discussions About Hyper Text Programming Language »
Warning: Require_once(Mail.php)
PHP Forums And Topics Discussions About Hyper Text Programming Language »
Warning: Require_once(Mail.php)
Title: Warning: Require_once(Mail.php)
Description: Warning: Require_once(Mail.php)
Tags: warning ,require ,oncemailphp ,
Info: This Post Has Been Viewed 0 Times Since
Date: Fri Oct 03, 2008
Author hostman Received 5 Replies #1176
Date: Fri Oct 03, 2008
Author hostman Received 5 Replies #1176
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5