发新话题
打印

求助:能在apache中运行的“网上定单系统”

求助:能在apache中运行的“网上定单系统”

我原来的服务器是 WINDOWS 2K ,最近我将WINDOWS 2K换成RAD HAT LINUX 8 ,大部分都没问题,只有“网上定单系统”原先是用ASP编写的,APACHE对ASP支持不是很好,“网上定单系统”无法运行,使用ASP2PHP转换后,仍然无法使用。
    现在,非常需要大家的帮助,谁有PHP编写的“网上定单系统”呀?
    是否能提供一个?
   
不胜感激!      

TOP

未注册的iasp只支持2个进程
并且,使apache不稳定

因此,急需php的“网上订单”      

TOP

用asp2php转换*.asp为*.php后。。。。。。

mail.asp:
<HTML>
<meta http-equiv="refresh" content="3;URL=yuding.htm">
<BODY>
<%'response.end

Set jmail = Server.CreateObject("JMail.Message")
jmail.AddRecipient "dlyy_hotel@sohu.com", "网上订单"
jmail.From = "king@aoying.net"
jmail.Subject = "网上订单!"
jmail.Charset = "gb2312"
name=request("name")
guo=request("guo")
zheng=request("zheng")
tel=request("tel")
mail=request("mail")
D1=request("D1")
other=request("other")
jmail.Body = "姓名:"&name&vbcrlf
jmail.appendText"国籍:"&guo&vbcrlf
jmail.appendText"身份证号码:"&zheng&vbcrlf
jmail.appendText"电话号码:"&tel&vbcrlf
jmail.appendText"电子邮件:"&mail&vbcrlf
jmail.appendText""&D1&vbcrlf
jmail.appendText"其它:"&other&vbcrlf
' The return value of AddAttachment is used as a
' reference to the image in the HTMLBody.
'contentId = jmail.AddAttachment("c:\myCoolPicture.gif")

' As only HTML formatted emails can contain inline images
' we use HTMLBody and appendHTML
'jmail.HTMLBody = "<html><body><font color=""red"">Hi, here is a nice picture:</font><br>"
'jmail.appendHTML "<img src=""cid:" & contentId & """>"
'jmail.appendHTML "<br><br> good one huh?</body></html>"

' But as not all mailreaders are capable of showing HTML emails
' we will also add a standard text body
'jmail.Body = "Too bad you can't read HTML-mail."
'jmail.appendText " There would have been a nice picture for you"
jmail.Send( "allin.com.cn" )
response.write "<center>欢迎光临本酒店!发送成功!3秒后返回!</center>"
%>
</BODY>

</HTML>



转换后



mail.php


<HTML>
<meta http-equiv="refresh" content="3;URL=yuding.htm">
<BODY>
<? //response.end

// $jmail is of type "JMail.Message"

$jmail->AddRecipient"dlyy_hotel@sohu.com"//网上订单"
$jmail->From="king@aoying.net";
$jmail->Subject="网上订单!";
$jmail->Charset="gb2312";
$name=${"name"};
$guo=${"guo"};
$zheng=${"zheng"};
$tel=${"tel"};
$mail=${"mail"};
$D1=${"D1"};
$other=${"other"};
$jmail->Body="姓名:".$name."\r\n";
$jmail->appendText"国籍:".$guo."\r\n";
$jmail->appendText"身份证号码:".$zheng."\r\n";
$jmail->appendText"电话号码:".$tel."\r\n";
$jmail->appendText"电子邮件:".$mail."\r\n";
$jmail->appendText"".$D1."\r\n";
$jmail->appendText"其它:".$other."\r\n";
// The return value of AddAttachment is used as a
// reference to the image in the HTMLBody.
//contentId = jmail.AddAttachment("c:\myCoolPicture.gif")

// As only HTML formatted emails can contain inline images
// we use HTMLBody and appendHTML
//jmail.HTMLBody = "<html><body><font color=""red"">Hi, here is a nice picture:</font><br>"
//jmail.appendHTML "<img src=""cid:" & contentId & """>"
//jmail.appendHTML "<br><br> good one huh?</body></html>"

// But as not all mailreaders are capable of showing HTML emails
// we will also add a standard text body
//jmail.Body = "Too bad you can't read HTML-mail."
//jmail.appendText " There would have been a nice picture for you"
$jmail->Send("allin.com.cn");
print "<center>欢迎光临本酒店!发送成功!3秒后返回!</center>";
?>
</BODY>

</HTML>



mail.php 无法正常运行

哪位 高手,能帮忙改改,万分感谢!      

TOP

JMail.Message在RH 8上也有吗?
看来这一段得重写了      

TOP

ASP中发邮件需要有组件的支持,你这里好象用的是jmail,但在php中,却是内置了发邮件的支持了,直接用php就可以发送邮件,你可以查php手册。      

TOP

发新话题