草庐IT

connect_failed

全部标签

php - Gearman 在 php 示例中抛出 GEARMAN_COULD_NOT_CONNECT

我在我的服务器上安装了gearmand1.1.5,并在启动服务器后尝试了安装提供的示例。它们工作得非常正确(echo示例有效,反向不按预期工作,但没有给出任何错误)。然后我使用pecl安装了php包装器。该版本是最后一个稳定版本(1.1.1)。显然我将扩展名添加到php.ini,我的php--info|grepgearman输出是:gearmangearmansupport=>enabledlibgearmanversion=>1.1.5PWD=>/root/gearman-1.1.1/examplesOLDPWD=>/root/gearman-1.1.1_SERVER["PWD"]=

PHP & IIS : LDAPS Connection for Password Change

我的目标是使用PHP和IIS通过Web界面更改ActiveDirectory中的密码。我一直在按照http://www.ashleyknowles.net/2011/07/iis-php-and-ldaps-with-active-directory/上的说明进行操作在遵循这些说明之前,我无法为LDAPS连接绑定(bind)到AD,但是在遵循这些说明之后,它似乎成功连接,但在我尝试更改时出现“服务器不愿执行”错误“unicodePwd”值。请注意,下面的代码将成功更改AD中用户的任何other值。encodePwd($newPassword));print_r($newEntry);i

php - 通过 sqlsrv_connect() 连接到 mssql 数据库 - PHP

我正在尝试使用sqlsrv_connect()函数使用PHP连接到2005Microsoftsql数据库。唉,函数返回false,我不确定为什么。$myDB,"UID"=>$myUser,"PWD"=>$myPass);$conn=sqlsrv_connect($myServer,$connectionInfo);//returnsfalseif($conn===false){echo"failedconnection";}$sql="SELECTnameFROMusersWHEREname='admin'";$stmt=sqlsrv_query($conn,$sql);if(sqls

PHP Mailer 错误 : Message could not be sent. Mailer Error: SMTP connect() failed

这是我的代码:require'phpmailertesting/PHPMailerAutoload.php';$mail=newPHPMailer;//$mail->SMTPDebug=3;//Enableverbosedebugoutput$mail->isSMTP();//SetmailertouseSMTP$mail->Host='send.one.com';//SpecifymainandbackupSMTPservers$mail->SMTPAuth=true;//EnableSMTPauthentication$mail->Username='myemailhidden';

nginx - CentOS 6.6 与 Nginx 1.6.2 - 突然无法重启 nginx - nginx : [emerg] open() “/usr/share/nginx/on” failed (13: Permission denied)

这是一个新安装,之前nginx正常启动和停止。我相信这个错误是在启用成功测试(nginx-t)的服务器block之后出现的。然后我尝试重新启动nginx并收到此错误:nginx:[emerg]open()"/usr/share/nginx/on"失败(13:权限被拒绝)在尝试重新启动之前文件“on”不存在。它刚刚创建并且是空的。当我重新启动php-fmp(成功)然后尝试重新启动nginx时,错误更改为:nginx:[emerg]open()"/var/run/nginx.pid"失败(13:权限被拒绝)nginx:配置文件/etc/nginx/nginx.conf测试失败但同样,当我运

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 - GAPI : Failed to authenticate user. 永久修复 PHP

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭7年前。Improvethisquestion我正在尝试从GAPI中获取内容,它有时可以正常工作,但有时会抛出此错误:ExceptionGAPI:Failedtoauthenticateuser.Error:"https://developers.google.com/accounts/docs/A

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 - SMTP 错误 : Could not connect to SMTP host. 邮件程序错误:SMTP 错误:无法连接到 SMTP 主机

大家好,我是php和html新手,面临问题:SMTP错误:无法连接到SMTP主机。邮件程序错误:SMTP错误:无法连接到SMTP主机。但在本地xampp中工作正常,在服务器中出现错误。代码如下:Name:$nameContact:$contactEmail:$emailCompany:$companyMessage:$message";require_once('mailer/class.phpmailer.php');$mail=newPHPMailer();$mail->IsSMTP();$mail->Host="smtp.gmail.com";$mail->SMTPDebug=0

php - 未捕获的异常 'ImagickException',消息为 'Compare images failed'

这是我第一次使用ImageMagick,我正在做一个小测试,看看它是否真的能满足我的要求;但是,我收到错误“比较图像失败”。很可能我做错了什么,因为我真的不知道Imagick是如何工作的。我对其他建议持开放态度,我只想比较两个几乎没有变化的图像。我的测试代码如下所示:readImage("export/image1.jpg");$image2->readImage("export/image2.jpg");$result=$image1->compareImages($image2,1);$result[0]->setimageFormat("jpg");echo$result[1].