URL是正確的,發送的參數已確認在開發服務器上工作,但它始終在生產服務器上返回錯誤。生產服務器:URL不能打開
$url = "http://www.smslive247.com/http/index.aspx?";
$url .= "cmd=sendquickmsg";
$url .= "&owneremail=".urlencode($owenerEmail);
$url .= "&subacct=".urlencode($subAcct);
$url .= "&subacctpwd=".urlencode($subPwd);
$url .= "&message=".urlencode($msg);
$url .= "&sender=".urlencode($sender);
$url .= "&sendto=".urlencode($phone);
$url .= "&msgtype=0";
if($f = @fopen($url, "r")){
echo "Successful.";
}else{
echo $url." Error: URL could not be opened.";
}
當我嘗試返回URL並將其放在瀏覽器上時,它返回Success消息。 我該怎麼辦?
你可以從*不壓制fopen調用中的錯誤報告*開始! – Quentin 2013-02-10 13:12:48
我該怎麼做?因爲相同的代碼在我的本地機器上運行良好(開發服務器) – pamodulus 2013-02-10 13:13:31
刪除@ infront of fopen – Venu 2013-02-10 13:13:48