阿神2017-04-18 10:36:27
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); //去日志文件里查看
PHPz2017-04-18 10:36:27
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.