草庐IT

client_message

全部标签

php - Zend_Http_Client 在尝试请求无效 URL 时挂起

我正在使用Zend_Http_Client请求URL,HTTP客户端的超时设置为10。$config=array('adapter'=>'Zend_Http_Client_Adapter_Curl','curloptions'=>array(CURLOPT_USERAGENT=>'Zend_Curl_Adapter',CURLOPT_HEADER=>0,CURLOPT_VERBOSE=>0,CURLOPT_RETURNTRANSFER=>1,CURLOPT_TIMEOUT=>10,CURLOPT_SSL_VERIFYPEER=>false,),);为了测试,我还添加了一个设置的时间限制

php - google-api-php-client-0.5.0 回调网址?

我是集成api的新手,我正在尝试使用google-api-php-client-0.6.0,我在Google注册了我的应用程序,并在中配置了它们dev.siva.com虚拟主机中的simple.phpsetApplicationName('GoogleContactsPHPSample');$client->setScopes("http://www.google.com/m8/contacts/");//Documentation:http://code.google.com/apis/gdata/docs/2.0/basics.html//Visithttps://code.goo

php - socket client查数据时socket server是 "hit"吗?

我设置了一个PHP服务器每秒写入一个套接字。while(1){$message="Hello,World!";socket_write($socket,$message,strlen($message));sleep(1);}然后我有一个Lua客户端(CoronaSDK),它每1/10秒检查一次套接字是否有数据:timer.performWithDelay(100,function()sock:receive()end,0)end我的问题是:每次运行sock:receive()时服务器是否“命中”?还是sock:receive()只检查本地缓冲区?重新表述这个问题:我运行sock:re

php - Twitter POST direct_messages/新 api 不工作

我正在使用POSTdirect_messages/new为我的网站邀请Twitter好友。大约一个月前,我的应用程序可以发送直接消息,但现在API返回此错误:"Thisrequestlookslikeitmightbeautomated.Toprotectourusersfromspamandothermaliciousactivity,wecan'tcompletethisactionrightnow.Pleasetryagainlater."如何修复此错误以继续从我的应用程序发送直接消息?提前致谢。 最佳答案 根据Twitter

php - Woocommerce 结帐页面 : remove view cart button & other messages

关闭。这个问题需要detailsorclarity.它目前不接受答案。想改进这个问题吗?通过editingthispost添加细节并澄清问题.关闭2年前。Improvethisquestion首先,我有点菜鸟。我不是网络开发人员/程序员。但我也不是白痴,我玩过functions.php(只是一点点)。这是页面:https://tefl-online-course.com/checkout-lp/?add-to-cart=228当用户点击我的着陆页上的链接时,它会自动将产品添加到购物车并将他们带到结帐页面。现在,我想做以下事情。删除/隐藏“查看购物车”按钮。这是最重要的...我不希望人们

php - yii : how to enable ajax if client insert space in textfield

在yii中,我在yii1.1.X的clientoptions中找到了validateOnChange和validateOnType但如果客户端在textField中输入空格,我需要启用ajax就像stackoverflow中的标签一样这是我的_form.phpbeginWidget('CActiveForm',array('id'=>'text-form',//Pleasenote:Whenyouenableajaxvalidation,makesurethecorresponding//controlleractionishandlingajaxvalidationcorrectly

PHP Jabber : if I login and check messages and disconnect, 在其他用户端我将显示为断开连接

我不确定我所做的是否绝对正确。但是这里是:用户通过基于网络的界面登录聊天通过Comet通知用户更新用户输入详细信息,然后转到一个PHP文件,该文件进一步连接到Jabber服务器现在的问题是,当用户想要发送消息时,很简单,运行php,我在其中连接到jabber服务器并发送消息。当我在等待消息时出现问题。因为如果我登录并查看消息并断开连接,在其他用户端我将显示为断开连接。我是不是以错误的方式解决了这个问题?我应该直接连接到Jabber服务器(通过javascript)而不是中间的PHP层吗?如何通过PHP接收消息? 最佳答案 我还没有尝

php - CakePHP 2.0 应用程序 : Intermittently unable to write to Memcache cache error messages

我有一个健康、低流量的暂存服务器和一个CakePHP应用程序。我在本地主机上运行Memcached,所有Cake缓存都使用Memcache作为缓存引擎。每隔一两个小时(比如每1-2周一次),我会看到如下错误:Warning(512):_cake_model_cachewasunabletowrite'default_read_users'toMemcachecache[CORE/Cake/Cache/Cache.php,line309]Warning(512):_cake_core_cachewasunabletowrite'file_map'toMemcachecache[CORE/

php - Google 云端硬盘服务帐户和 "Unauthorized client or scope in request"

我有3个使用DriveSDK的服务帐户。1,有效,2无效。返回的错误是“ErrorrefreshingtheOAuth2token,message:'{"error":"unauthorized_client","error_description":"Unauthorizedclientorscopeinrequest."}'"所有3个帐户都已在开发者控制台中注册。所有3个都被授权在GoogleApps控制台中进行“ManagedClientAPIaccess”。所有3个都有范围“https://www.googleapis.com/auth/drive.readonly”。所有3个

php - haxe (php) https 调用 : stream_socket_client() Peer certificate CN did not match expected CN

我正在使用haxe的Http类(编译为php)通过https将request()发送到AWS。这是一个使用haxe-aws库(https://github.com/Blank101/haxe-aws)的最小示例:variamconf=newIAMConfig('newbucket.s3-eu-central-1.amazonaws.com',accessKey,secretKey,'eu-central-1','s3');varsig4=newSig4Http('https://newbucket.s3-eu-central-1.amazonaws.com/',iamconf);sig