<?
$sender=$mobile;
if ($sender=="") {echo 3; exit();}
$sendto=$spn;
if ($sendto=="") {echo 4; exit();}
$service=$service;
if ($service=="") {echo 6; exit();}
$linkid=$linkid;
$momsg=$msg;
if ($momsg=="") {echo 5; exit();}
$currdate=date("Y-m-d H:i:s");
$msgid = date("mdhis");
$sqlstr = "insert into sms.sms_recvlist(sender,sendto,recv_msg,recv_state,deal_state,recv_time,service_id,company_id,gateway_id,linkid)
values( '$sender','$sendto','$momsg','没有处理','没有处理','$currdate','$service','0181','mobile','$linkid')";
$DataExecuteObject-> SQLExecute = $sqlstr;
$DataExecuteObject-> Execute();?>
$sender=$mobile;
if ($sender=="") {echo 3; exit();}
$sendto=$spn;
if ($sendto=="") {echo 4; exit();}
$service=$service;
if ($service=="") {echo 6; exit();}
$linkid=$linkid;
$momsg=$msg;
if ($momsg=="") {echo 5; exit();}
$currdate=date("Y-m-d H:i:s");
$msgid = date("mdhis");
$sqlstr = "insert into sms.sms_recvlist(sender,sendto,recv_msg,recv_state,deal_state,recv_time,service_id,company_id,gateway_id,linkid)
values( '$sender','$sendto','$momsg','没有处理','没有处理','$currdate','$service','0181','mobile','$linkid')";
$DataExecuteObject-> SQLExecute = $sqlstr;
$DataExecuteObject-> Execute();?>
The server encountered an internal error or misconfiguration and was unable to complete your request.如果msg=汉字,则在IE出现下列错误
----------------------------------------Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
--------------------------------------------------------------------------------Apache/2.0.44 (Win32) Server at 127.0.0.1 Port 80
if ($momsg=="") {echo 5; exit();} 改成$momsg=urlencode($msg);
if ($momsg=="") {echo 5; exit();}
试试看,不过这也不该造成服务器500错误啊
if ($momsg=="") {echo 5; exit();} 改成$momsg=urlencode($msg);
if ($momsg=="") {echo 5; exit();}
我这样改了,还是没有变化呐...
'".$momsg."'试试
'".$momsg."'了,还是没有对
----------------------------------------Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
--------------------------------------------------------------------------------Apache/2.0.44 (Win32) Server at 127.0.0.1 Port 80
$momsg=urlencode($msg);
if ($momsg=="") {echo 5; exit();}
...........还是不行呐