z
t
點擊提交 首先url是能訪問你的
我想知道有什么辦法可以檢測到 微信服務(wù)器給我發(fā)了什么 我好調(diào)試點
走同樣的路,發(fā)現(xiàn)不同的人生
What the WeChat server sends you is a data stream. The code can be written like this
$postStr = file_get_contents('php://input');
$logFile = date('Y-m-d').'wechatPost.log';
file_put_contents($logFile,$postStr,8); //去日志文件里查看
Write statements in wechat.php and store all received parameters in the database
$xml = $GLOBALS['HTTP_RAW_POST_DATA'];
This can be used to receive xml data received by the server.