file_get_contents("php://input", "r")實例介紹_PHP教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
推薦:mongo Table類文件 獲取MongoCursor(游標(biāo))的實現(xiàn)方法分析MongoCursor Object 游標(biāo)類 Mongo Config.php配置文件 Table.php(mongodb操作數(shù)據(jù)庫類文件) Config.php配置文件 復(fù)制代碼 代碼如下: ?php require_once 'Zend/Exception.php'; class Hrs_Mongo_Config { const VERSION = '1.7.0'; const DEFAULT_HOST = 'localhost';
解釋不清,直接上例子
index.html
<form action="action.php" method="post" >
<input type="text" name="userName" id="userName" /><br/>
<input type="text" name="userPass" id="userPass" /><br/>
<input type="submit" value="ok" />
</form>
action.php
<?php
$raw_post_data = file_get_contents('php://input', 'r');
echo "-------\$_POST------------------<br/>";
echo var_dump($_POST) . "<br/>";
echo "-------php://input-------------<br/>";
echo $raw_post_data . "<br/>";
?>
分享:計算php頁面運行時間的函數(shù)介紹本篇文章是對計算php頁面運行時間的函數(shù)進行了詳細的分析介紹,需要的朋友參考下 一個計算php頁面運行時間的函數(shù)。 復(fù)制代碼 代碼如下: ?php /* @ 計算php程序運行時間 */ function microtime_float() { list($usec, $sec) = explode( , microtime()); return ((float)$
相關(guān)PHP教程:
- 相關(guān)鏈接:
- 教程說明:
PHP教程-file_get_contents("php://input", "r")實例介紹
。