1:打开你的错误提示,error_reporting(E_ALL); 2:运行下phpinfo();本地与服务器上的进行比较; 3:针对你上述信息,很明显是文件包含问题,查看下路径,是否正确.比方用: file_exists//(PHP 3, PHP 4, PHP 5)//file_exists -- 检查文件或目录是否存在; 4:/** Fatal error: Class 'smtp' not found in D:\trefgf.cn\shop\shop\neworder_act.php on line 371 */ 这是一个邮件服务器的设置,先把邮件功能关闭,这样便于你调试其他功能,最后调试这邮件功能;
I think the notice has told you the problem ...
It may because you include file by using the absolute address and it is different on the server.
LZ的server端的smtp服务靠了么~~
服务器是windows的? 你先去相应位置看看是否有此文件
sm.php 这文件有,路径也对
跟mail的smtp 服务应噶没问题 我在本地测试时 根本都没SMTP 而且03系统默认也不安
Warning: include_once(syssite/smtpmail/sm.php) [function.include-once]: failed to open stream: No such file or directory in D:\trefgf.cn\shop\shop\neworder_act.php on line 364Warning: include_once() [function.include]: Failed opening 'syssite/smtpmail/sm.php' for inclusion (include_path='.:/php/includes') in D:\trefgf.cn\shop\shop\neworder_act.php on line 364Fatal error: Class 'smtp' not found in D:\trefgf.cn\shop\shop\neworder_act.php on line 371--------------------------------------------------------------------------------- 提示如此清楚,为什么不按着这个提示去查呢?
2:运行下phpinfo();本地与服务器上的进行比较;
3:针对你上述信息,很明显是文件包含问题,查看下路径,是否正确.比方用:
file_exists//(PHP 3, PHP 4, PHP 5)//file_exists -- 检查文件或目录是否存在;
4:/**
Fatal error: Class 'smtp' not found in D:\trefgf.cn\shop\shop\neworder_act.php on line 371
*/
这是一个邮件服务器的设置,先把邮件功能关闭,这样便于你调试其他功能,最后调试这邮件功能;
你先去相应位置看看是否有此文件
提示如此清楚,为什么不按着这个提示去查呢?
你看看这个地址的文件在不在
D:\trefgf.cn\shop\shop\syssite\smtpmail\sm.php如果在的话我也没话好说了
它是这样写的
$smtp = new smtp($smtpuser,$smtppass,$smtpserver,$smtpserverport,true);//这里面的一个true是表示使用身份验证,否则不使用身份验证.
//$smtp->debug = true;//是否显示发送的调试信息
$smtp->encode = $shopinfo->mail_enc;
$smtp->lang = $FRONTEND_LANG;这个 $smtp->lang = $FRONTEND_LANG; 是错误信息提示的第 364行
各位也看看 错误在哪,我这也试试