Heim  >  Artikel  >  Backend-Entwicklung  >  在PHP中,http_post_data和http_put_data的用法(实例)?解决思路

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

WBOY
WBOYOriginal
2016-06-13 13:44:551079Durchsuche

在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'=>'abcd@yahoo.com.cn','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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn