$returnXml=file_get_contents("php://input");
file_put_contents("notify.txt", $returnXml.PHP_EOL,FILE_APPEND);
- file_get_contents("php://input");接受文件流
- file_put_contents();写入文件
- PHP_EOL换行
- FILE_APPEND内容追加(不会覆盖文件中已有内容)
$returnXml=file_get_contents("php://input");
file_put_contents("notify.txt", $returnXml.PHP_EOL,FILE_APPEND);