vani sri Posted February 18, 2009 Share Posted February 18, 2009 Hi all, I am using SMTP mail function. Mail sent successfully. When i try to include the MIME function i got the error. Quote Quote Warning: require_once(Mail/mime.php) [function.require-once]: failed to open stream: No such file or directory in /home/viewtube/public_html/mail.php on line 3 How can i fix this error? Hope any one help me. Regards, vani Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/ Share on other sites More sharing options...
Cal Posted February 18, 2009 Share Posted February 18, 2009 It's as the error says, it can't find the file you're trying to include. Make sure the path is right. Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765119 Share on other sites More sharing options...
vani sri Posted February 18, 2009 Author Share Posted February 18, 2009 Hi Cal, Thank for ur reply. Quote require_once ('Mail.php'); require_once ('Mail/mime.php'); This are build in files in pear know. Then how the path may change ? Regards, vani Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765123 Share on other sites More sharing options...
vani sri Posted February 18, 2009 Author Share Posted February 18, 2009 Pls any one help me ??? ??? Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765136 Share on other sites More sharing options...
gizmola Posted February 18, 2009 Share Posted February 18, 2009 Having libraries installed in PEAR is fine, but the Pear library must be in the php include path. Only you can determine if the include path has been set so that the scripts can be found. You can set the include path in the php.ini file, or if you don't have access to that on your server, you can set it programatically using ini_set(). In the php.ini -> check include_path= In a script set it with -> ini_set('include_path', '.: etc'); Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765138 Share on other sites More sharing options...
vani sri Posted February 18, 2009 Author Share Posted February 18, 2009 Hi gizmola, Thanks for ur reply. I have no experience with this type of error.In my .ini file , i found the path Quote .:/usr/lib/php:/usr/local/lib/php In that path i saw PEAR folder also. Then why this functions are not called properly. I have no idea with this error pls kindly give me the instruction how to overcome from this pbm. Regards, vani Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765155 Share on other sites More sharing options...
vani sri Posted February 18, 2009 Author Share Posted February 18, 2009 Hi all, mime.php file is missing in PEAR folder. Quote pear install Mail Mail_mime Now i got the output :) My pbm. solved. Regards, vani Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765196 Share on other sites More sharing options...
gizmola Posted February 18, 2009 Share Posted February 18, 2009 Glad you got it sorted out. Quote Link to comment https://forums.phpfreaks.com/topic/145729-warning-require_oncemailmimephp/#findComment-765567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.