mac os 下的 mamp 如何开启php的错误报告
推荐于2016-07-13
展开全部
NVCI7Cn0=";
"environment" = "Sandbox";
"pod" = "100";
"signing-status" = "0";';
$param = array(
'receipt-data' => $str,
);
$receipt = json_encode($param);
// echo $receipt;
$url = "https://Sandbox.itunes.apple.com/verifyReceipt";
$defaults = array(
CURLOPT_POST => 1,//发送post请求
CURLOPT_HEADER => false,//是否返回请求头
CURLOPT_URL => $url,//url地址
CURLOPT_FRESH_CONNECT => 1,//强制获取一个新的连接,替代缓存中的连接
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 30,//请求超时时间
CURLOPT_SSL_VERIFYPEER => false,//cURL验证
CURLOPT_POSTFIELDS => $receipt
);
$ch = curl_init();
curl_setopt_array($ch,$defaults);
$result = curl_exec($ch);
curl_close($ch);
var_dump($result);
展开全部
NVCI7Cn0=";
"environment" = "Sandbox";
"pod" = "100";
"signing-status" = "0";';
$param = array(
'receipt-data' => $str,
);
$receipt = <a href="https://www.baidu.com/s?wd=json_encode&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLmWbYnHF9nWI9PHbvuHfd0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1f4P1c1nWRYPjbzPH0YP1nzP0" target="_blank" class="baidu-highlight">json_encode</a>($param);
// echo $receipt;
$url = "https://Sandbox.itunes.apple.com/verifyReceipt";
$defaults = array(
CURLOPT_POST => 1,//发送post请求
CURLOPT_HEADER => false,//是否返回请求头
CURLOPT_URL => $url,//url地址
CURLOPT_FRESH_CONNECT => 1,//强制获取一个新的连接,替代缓存中的连接
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 30,//请求超时时间
CURLOPT_SSL_VERIFYPEER => false,//cURL验证
CURLOPT_POSTFIELDS => $receipt
);
$ch = curl_init();
curl_setopt_array($ch,$defaults);
$result = curl_exec($ch);
curl_close($ch);
<a href="https://www.baidu.com/s?wd=var_dump&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLmWbYnHF9nWI9PHbvuHfd0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1f4P1c1nWRYPjbzPH0YP1nzP0" target="_blank" class="baidu-highlight">var_dump</a>($result);
"environment" = "Sandbox";
"pod" = "100";
"signing-status" = "0";';
$param = array(
'receipt-data' => $str,
);
$receipt = <a href="https://www.baidu.com/s?wd=json_encode&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLmWbYnHF9nWI9PHbvuHfd0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1f4P1c1nWRYPjbzPH0YP1nzP0" target="_blank" class="baidu-highlight">json_encode</a>($param);
// echo $receipt;
$url = "https://Sandbox.itunes.apple.com/verifyReceipt";
$defaults = array(
CURLOPT_POST => 1,//发送post请求
CURLOPT_HEADER => false,//是否返回请求头
CURLOPT_URL => $url,//url地址
CURLOPT_FRESH_CONNECT => 1,//强制获取一个新的连接,替代缓存中的连接
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 30,//请求超时时间
CURLOPT_SSL_VERIFYPEER => false,//cURL验证
CURLOPT_POSTFIELDS => $receipt
);
$ch = curl_init();
curl_setopt_array($ch,$defaults);
$result = curl_exec($ch);
curl_close($ch);
<a href="https://www.baidu.com/s?wd=var_dump&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLmWbYnHF9nWI9PHbvuHfd0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1f4P1c1nWRYPjbzPH0YP1nzP0" target="_blank" class="baidu-highlight">var_dump</a>($result);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询