草庐IT

CONNECTION_RESET

全部标签

php - <b> fatal error </b> : Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out'

我正在开发一个Codeigniter项目,在该项目中我使用twitterapi库来获取twitter数据。在我更改服务器之前它工作得很好,但是在更改服务器之后它产生了以下错误。我不知道问题所在。Fatalerror:Uncaughtexception'Exception'withmessage'Failedtoconnecttoapi.twitter.comport443:Connectiontimedout'in/my/project/path/myProject/application/ws/libraries/TwitterAPIExchange.php:297Stacktrac

PHP ftp_put 返回 "Unable to build data connection: Connection refused"

我有一台通过PHP运行一些FTP的PC,我知道它在1-2个月前可以工作,但现在我回到它,我发现这台PC不再工作了。我知道我一直在使用PC,但我想不出可能发生了什么变化。PHP正在抛出错误信息Unabletobuilddataconnection:Connectionrefused...当我使用ftp_put()函数时。我使用的缩减代码是:Connectingto$server:$port";$conn_id=ftp_connect($server,$port,9999999)ordie("Unabletoconnectto".$server.":$portserver.");if(!$

php - 我需要在 arsort() 之后 reset() 吗?

在arsort($array);之后我是否需要reset($array);还是在排序后指针会自动重置? 最佳答案 它是自动重置的,看这个codepad用于实时测试用例 关于php-我需要在arsort()之后reset()吗?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/8152715/

php - Zend 框架 2 : Database connection in view helper

我发现了一些与此问题相关的其他帖子,但是我无法实现我想要的,所以我决定删除所有内容并在一些帮助下重新开始...到目前为止,这是我的工作,它完成了工作,但数据是在数组中硬编码提供的,我需要创建一个数据库连接来获取这些数据。在我的模块类中我有:publicfunctiongetViewHelperConfig(){returnarray('factories'=>array('liveStreaming'=>function(){returnnewLiveStreaming();},),);}这是我在View助手中的代码:namespaceApplication\View\Helper;u

php - SQLSTATE[08001] : [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: No connection could be made because the target machine actively refused it

我的学说存储库代码无法运行,但我能够正常访问数据库和读取表数据。我得到这个堆栈跟踪:EntityManager->getRepository('AppBundle:Person')insrc\AppBundle\Controller\PersonViewController.php(line18)publicfunctionindexAction(Request$request){$em=$this->getDoctrine()->getManager();$repo=$em->getRepository('AppBundle:Person');$persons=$repo->find

php - Symfony 2 ERR_CONNECTION_RESET

我在没有供应商的情况下下载了symfony2.0.9。之后我执行phpbin/vendorsinstall来安装供应商。过程顺利。但是当我执行http://localhost/project/web/app.php我收到了Error101(net::ERR_CONNECTION_RESET)我不知道发生了什么。如果我在app.php中注释行$kernel->handle(Request::createFromGlobals())->send();响应更改为200好的。有人知道问题出在哪里吗?我在PHP5.3.9提前致谢。 最佳答案

php - 如何让 laravel Password::Reset 使用用户 ID 而不是电子邮件?

我试图在Laravel中重置用户密码,但Password::reset方法正在password_tokens表中查找电子邮件列,而不是id列。$credentials=['password'=>Input::get('password'),'id'=>$currentUser->id,'token'=>Input::get('token'),'password_confirmation'=>Input::get('password_confirmation')];returnPassword::reset($credentials,function($user,$password){$

php - 运行 PHP5 : access denied to MySQLi connection but success for MySQL

我运行这段代码得到如下图所示的输出:问题是,我不明白为什么会这样:$conn=@mysql_connect('host','user','pass')ordie(mysql_error());@mysql_select_db('dbName')ordie(mysql_error());$query="SELECT*FROMClients";$result=@mysql_query($query)ordie(mysql_error());if($result){$outp="";while($row=mysql_fetch_assoc($result)){if($outp!=""){$o

php - cURL 错误 35 : Unknown SSL protocol error in connection to api. mailgun

突然间我开始收到这个mailgun错误,GuzzleHttp\Exception\RequestExceptioncURLerror35:UnknownSSLprotocolerrorinconnectiontoapi.mailgun.net:443任何邮件枪用户请帮助我谢谢 最佳答案 我在使用Laravel4.2和Mailgun时遇到了同样的问题。我已经联系了MG,他们将此错误归咎于他们一直遭受的DDoS攻击。我将此线程包含在我最新的支持票中。如果您有任何有用的信息可以帮助他们,请在此处提供。我注意到它只发生在每天清晨到中午。Ma

php - Predis\Connection\ConnectionException

我正在尝试在xampp的本地机器上运行laravelshop菜单项目。但是当我尝试运行它时,它会显示以下错误。请帮我解决这个问题。我还附上了一个屏幕截图以便更清楚地说明。提前致谢:错误:Predis\Connection\ConnectionExceptionphp_network_getaddresses:getaddrinfofailed:Nosuchhostisknown.[tcp://tunnel.pagodabox.com:6379]open:C:\xampp\htdocs\laravel\laravel-shop-menu\vendor\predis\predis\lib\