草庐IT

ERR_CONNECTION_REFUSED

全部标签

php - Windows 7 上的 Netbeans Xdebug "waiting for connection"WAMP

针对这个常见的Xdebug错误,我阅读了很多解决方案,但似乎并没有解决我的问题:netbeansshows“WaitingForConnection(netbeans-xdebug)”NetbeansnotconnectingwithxdebugonWamp:“showingwaitingforconnection”在phpinfo()中Xdebug似乎配置正确:下面是我的php.ini:zend_extension="c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll";[xdebug]xde

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 - ERR_NAME_NOT_RESOLVED

有什么想法吗?DocumentRoot"C:/laragon/www/monetize/public/"ServerNamemonetize.appServerAlias*.monetize.appAllowOverrideAllRequireallgrantedApache2.4.27拉拉贡完整版3.1.4window8.1我在Internet选项8.8.8.8和8.8.4.4中设置的DNS 最佳答案 您需要在您的hosts文件中添加一个条目127.0.0.1monetize.applocalhostmonetize.app

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(!$

javascript - 在 $.POST 上获取 ERR_EMPTY_RESPONSE

我有一个带有聊天功能的简单社交网站。我在多个页面中大量使用了$.post。该代码适用于除message.php之外的所有页面,其中用户消息被多次发布和获取$.post(过去在本地服务器上运行良好)。当用户之间的消息模拟发生时,网站停止响应。重新加载时,服务器关闭并显示ERR_EMPTY_RESPONSE消息。几分钟后,该网站再次运行。据我了解,这发生在经常使用$.post的页面上。为了总结情况,我创建了一个livetestpage.ERR_EMPTY_RESPONSE当连续输入几秒钟时发生。页面内容:a.php$(document).ready(function(e){$(".abc"

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

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

php - ERR_ICANN_NAME_COLLISION 在主机文件中使用 url 而不是 ip

我正在尝试使用laravelhomestead并将“homestead.dev”重定向到“192.168.10.10”。我可以看到使用IP的网站,但看不到“homestead.dev”。我收到这个错误:ERR_ICANN_NAME_COLLISIONPinghomestead.dev响应为127.0.53.53。我也可以用这个访问网站:http://127.0.53.53:8000/.我的宅基地.yaml:ip:"192.168.10.10"memory:2048cpus:1provider:virtualboxauthorize:~/.ssh/id_rsa.pubkeys:-~/.s

php - 生成和下载 excel 文件会生成 ERR_INVALID_RESPONSE

这是我的代码:publicfunctiondownloadexcel($requestId){$this->loadModel('MaterialsRequest');$materialsRequests=$this->MaterialsRequest->find('all',array('conditions'=>array('MaterialsRequest.request_id'=>$requestId)));date_default_timezone_set('Europe/London');if(PHP_SAPI=='cli')die('Thisexampleshouldon

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提前致谢。 最佳答案