草庐IT

invalid_client

全部标签

php - stream_socket_client 超时

我正在尝试调试PHP函数stream_socket_client但我真的不知道该怎么做。这是我遇到问题的代码:$this->socket=@stream_socket_client($remote,$errno,$errstr,$this->request->getConfig('connect_timeout'),STREAM_CLIENT_CONNECT,$context);if(!$this->socket){thrownewHTTP_Request2_ConnectionException("Unabletoconnectto{$remote}.Error:{$errstr}"

php - MSSQL 和 PHP : "An invalid parameter was passed to sqlsrv_query."

我试图通过PHP运行一个非常简单的MSSQL更新语句,但我收到一条错误消息*“将无效参数传递给sqlsrv_query。”*这是connectionclass我正在使用,最相关的是查询功能:functionquery($query){$result=sqlsrv_query($query)ordie(print_r(sqlsrv_errors(),true));}最后,这是我用来尝试执行语句的代码:$db=newmssqlClass();$conn=$db->connect();$SQL="UPDATEtableSETTitle='Test'whereID=1"$SQL=$db->qu

php - 警告 : mysql_data_seek(): Offset 1 is invalid for MySQL result index 5 (or the query data is unbuffered)

请任何人提供帮助。我正在尝试执行以下php代码:$sql="SELECT*FROMvendorsWHEREvuid=".$uid."ANDstatus="."'c'";$sql=$sql."LIMIT0,10";$result=mysql_query($sql);$numrows=mysql_num_rows($result);for($i=0;$i0){mysql_data_seek($result,$i);}我收到以下错误警告:mysql_data_seek():偏移量1对于MySQL结果索引5无效(或查询数据未缓冲)。$numrows为2,因此mysql_data_seek的范围

PHP : paypal recurring payments token is invalid

我使用了paypalphpsdk:https://github.com/paypal/merchant-sdk-php/blob/master/samples/RecurringPayments/CreateRecurringPaymentsProfile.php快速结帐运作良好,但使用定期付款有问题:token无效。sdk中的第152行,据说Atimestampedtoken,thevalueofwhichwasreturnedintheresponsetothefirstcalltoSetExpressCheckout.CallCreateRecurringPaymentsProf

php - 如何从Google OAuth2 PHP Client获取用户国家和时区信息

我正在使用PHPGoogleAPIClientLibrary使用OAuth2从Google帐户检索用户信息。然而,尽管Google'sdocumentationstates,我似乎无法访问用户的国家/地区或时区信息,即使token已成功返回并且所有其他信息都可以从userinfo.profile范围。我使用了int继承人库提供的示例代码here如果我在该文件的第49行var_dump($user)得到以下输出(出于隐私考虑进行了编辑):array(10){["id"]=>string(21)"123"/*Redacted*/["email"]=>string(13)"XXX@gmail

php xmlParsePITarget : invalid name prefix 'xml' error

有人能帮我理解(并修复这个错误)吗?错误如下:警告:simplexml_load_file():/home/jeffreycwitt/webapps/lombardpress_instances/petrusplaoul/lombardpress/phpfunctions/../../projectfiles/GitTextfiles/lectio1/lectio1.xml:2:解析器警告:xmlParsePITarget:home/jeffreycwitt/webapps/lombardpress_instances/petrusplaoul/lombardpress/phpfunc

php - aws s3Client PutObject 访问被拒绝,但 Cyber​​Duck 可以成功 PutObject

我面临着一个关于S3存储桶策略的谜团,它阻止我的PhpS3Client来自PutObject。我得到的错误是:Errorexecuting"PutObject"on"https://s3.amazonaws.com/reusable-system-dev/b1e42024e33d62b852d3c94c85f68c72.jpeg";AWSHTTPerror:Clienterrorresponse[url]https://s3.amazonaws.com/reusable-system-dev/b1e42024e33d62b852d3c94c85f68c72.jpeg[statuscod

php - curl 发布 : 400 Invalid content length

我在使用PHP中的cURL脚本发送POST请求时遇到问题。我正在尝试制作一个代理,主要是供我个人使用,它将通过服务器获取网页并在本地显示给我。找到的URL是这样的:http://fetch.example.com/http://theurl.com/当我在该页面上的表单中发帖时,它将转到表单的ACTION(获取URL在前面)。我正在尝试使用下面的代码让它处理这个POST请求,但我POST的任何内容总是会带来400BadRequest错误。$chpg=curl_init();curl_setopt($chpg,CURLOPT_URL,$_URL);curl_setopt($chpg,CU

php - imap_open() 显示 "invalid remote specification"并且连接失败

当我尝试使用imap_open时,出现以下错误:Warning:imap_open()[function.imap-open]:Couldn'topenstream{mail.domain.com:110/pop3/novalidate-cert/}in/path/to/mailbox.phponline5Can'topenmailbox{mail.domain.com:110/pop3/novalidate-cert/}:invalidremotespecification我的phpinfo说我有:IMAPc-ClientVersion2007eSSLSupportenabledKe

php - PayPal ExpressCheckout (Payflow) : Invalid vendor accountError Code: 26

这让我发疯!我无法让PayPalExpress(Payflow?)api工作....paypal沙箱告诉我:测试账号:AAAA.B_CCCCCCCCCC_biz@XXXXX.comAPI用户名:AAAA.B_CCCCCCCCCC_biz_api1.XXXXX.comAPI密码:DDDDDDDDDD签名:ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ我在paypayfunctions.php中写道:$API_User="AAAA.B_CCCCCCCCCC_biz@XXXXX.com";$API_Password="DDDDDDDDDD";$A