Home  >  Article  >  Backend Development  >  在PHP中,http_post_data和http_put_data的用法(实例)?解决思路

在PHP中,http_post_data和http_put_data的用法(实例)?解决思路

WBOY
WBOYOriginal
2016-06-13 10:12:241956browse

在PHP中,http_post_data和http_put_data的用法(实例)?
您好,在PHP中,http_post_data和http_put_data的怎么用(举个间的的小例子),谢谢……

------解决方案--------------------
手册手册。。
http://www.php.net/manual/en/function.http-post-data.php
大致是这种用法。里边还有很多参数可以配置

$url = "http://www.renren.com/PLogin.do";
$data = arry('email'=>[email protected]','password'=>'****');
$response = http_post_data($url,$data);
if($response ===false){
echo "failure notice!";
}
else echo $response;
------解决方案--------------------
提示找不到函数http_post_data() 

你没有加载相应的扩展库了
好像http_post_data()这个函数是php_http扩展
给你个参考吧,希望对你有用
http://liero.me/?p=729

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:函数形参解决方法Next article:php 运算符请问