php接收post原始数据

xiaoxiao2021-02-28  66

需要设置php.ini中的always_populate_raw_post_data值为On才可以。 

<?php $json = file_get_contents("php://input"); echo $json; ?>

转载请注明原文地址: https://www.6miu.com/read-81757.html

最新回复(0)