【发布时间】:2012-03-12 06:32:16
【问题描述】:
function modify(.......)
{
$mcontact = file_get_contents( "https://test.httpapi.com/api/contacts/modify.json?auth-userid=$uid&auth-password=$pass&contact-id=$cid&name=$name &company=$company&email=$email&address-line-1=$street&city=$city&country=$country&zipcode=$pincode&phone-cc=$countryCodeList[$phc]&phone=$phone" );
$mdetails = json_decode( $mcontact, true );
return $mdetails;
}
使用此修改功能,显示警告信息
Warning: file_get_contents(https://...@hihfg.com&address-line-1=3,dfgdf,fgdf&city=dfgfd&country=India&zipcode=641005&phone-cc=91&phone=756657)
[function.file-get-contents]: failed to open stream: HTTP request failed!
HTTP/1.0 400 Bad request in /home/gfdgfd/public_html/new_one/customer/account/class.whois.php
on line 49
请帮帮我,修改联系方式..
【问题讨论】:
-
我无法接受答案,因为我的声望低于 15
-
那是错误的。你需要 15 个代表来upvote,而不是 accept。点击投票按钮下方的复选标记图标。
标签: php api file-get-contents