首頁 > 後端開發 > php教程 > file_get_contents("php://input", "r")实例介绍_php技巧

file_get_contents("php://input", "r")实例介绍_php技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-05-17 08:57:39
原創
1335 人瀏覽過
解释不清,直接上例子
index.html
复制代码 代码如下:

 

 

 

 
 


action.php
复制代码 代码如下:

$raw_post_data = file_get_contents('php://input', 'r');
echo "-------\$_POST------------------
";
echo var_dump($_POST) . "
";
echo "-------php://input-------------
";
echo $raw_post_data . "
";
?>

 

相關標籤:
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
php - file_get_contents($url); 輸入json
來自於 1970-01-01 08:00:00
0
0
0
PHP file_get_contents 採集為空請指教 ? ?
來自於 1970-01-01 08:00:00
0
0
0
為什麼要用@
來自於 1970-01-01 08:00:00
0
0
0
php - file_get_contents實現POST數據,https
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板