file_get_contents("php://input")的使用方法

$data = file_get_contents("php://input");php //input 是個能夠訪問請求的原始數據的只讀流。 POST 請求的狀況下,最好使用 php://input 來代替 $HTTP_RAW_POST_DATA,由於它不依賴於特定的 php.ini 指令。 並且,這樣的狀況下 $HTTP_RAW_POST_DATA 默認沒有填充,比激活 always_popu
相關文章
相關標籤/搜索