草庐IT

ERR_FAILED

全部标签

php - 无法连接到本地主机中的 wordpress (GET http://localhost/net::ERR_CONNECTION_REFUSED)

我只是在虚拟网络托管中备份wordpress数据库和public_html文件夹。然后我将它们移动到本地MAMP。但是当我输入http://localhost:8888/,它只是转移到http://localhost.错误消息(GEThttp://localhost/net::ERR_CONNECTION_REFUSED)显示在chrome中。有人能给我一些提示吗?我试图在/htdoc/test中放置一个带有echo"debug"的虚拟index.php然后连接到http://localhost:8888/test,它按预期显示“调试”。谢谢。 最佳答案

php - 无法打开流 : HTTP request failed! HTTP/1.0 400 错误请求

这是我用来查找地点的纬度和经度的代码:functioncoords($address){echo$url="http://maps.googleapis.com/maps/api/geocode/json?address=".$address;$json=file_get_contents(urlencode($url));$data=json_decode($json,TRUE);print_r($data['results'][0]['geometry']['location']['lat']);print_r($data['results'][0]['geometry']['lo

PHP fatal error : 'Swift_TransportException' with message 'Failed to authenticate on SMTP server

我知道之前有人问过这个问题,我已经阅读了那里的所有帖子,但我仍然找不到解决方案。我有一台安装了wamp的Windows机器。当我尝试通过谷歌的SMTP服务器发送一封简单的电子邮件时,一切正常。但是,当我将相同的脚本复制到Ubuntu12机器时,它给了我这个错误:PHPFatalerror:Uncaughtexception'Swift_TransportException'withmessage'FailedtoauthenticateonSMTPserverwithusername"xxx@gmail.com"using2possibleauthenticators'in/home/

php - 文件()[函数.文件] : php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

从文件("http://www.otherdomain.com")获取内容时出现以下错误。file()[function.file]:php_network_getaddresses:getaddrinfofailed:Temporaryfailureinnameresolution域服务器是linux。如何解决这个问题? 最佳答案 引用:Ifyou'rehavingproblemswithfopen("url...")butyoucanrun'hosturl'inashellwindowandgetthecorrectlookup

php - Jquery-fileupload 插件 - 上传文件但显示 'file upload failed'

我点击“添加文件”选择一个文件,然后它会创建一个缩略图(取决于浏览器)并在其下方显示“上传”按钮。当我点击“上传”时,有时它会上传文件并提示“文件上传失败”。-文件实际上已上传,但我仍然收到此消息。有时它不会上传,我会收到相同的消息。我有两个错误-第一个在PHP错误日志中'PHPWarning:exif_imagetype():Filenamecannotbeemptyin***\***\UploadHandler.php'我不明白不过,它一直都是。第二个是页面上的jquery.validation-'UncaughtError:Syntaxerror,unrecognizedexpr

php - 警告 : ssh2_connect(): Failed overriding server to client COMP method

我在为PHP中的SSHsession启用压缩时遇到问题。部分代码:$methods=array('server_to_client'=>array('comp'=>'zlib'));if(!($con=ssh2_connect("10.214.201.31",22,$methods))){...执行期间的警告(通过httpd或phpcli):Warning:ssh2_connect():FailedoverridingservertoclientCOMPmethod压缩不起作用(通过ssh2_scp_recv下载测试文件的时间没有改变)。设置客户端到服务器压缩后出现类似警告。PHPVe

php - 文件获取内容(): Failed to enable crypto

当我尝试从谷歌获取图片时,它为一次搜索提供了4张图片,但由于图片大小,我无法获取一些图片。这样我就会收到类似的错误"file_get_contents():Failedtoenablecrypto"有什么解决办法吗?这是我的代码all();$sql_2="TRUNCATE`tn_gift_google_image`";$query_1=Yii::$app->db->createCommand($sql_2)->execute();functionget_url_contents($url){$crl=curl_init();curl_setopt($crl,CURLOPT_USERAG

PHP 警告 : stream_socket_client(): Failed to enable crypto?

我正在使用swiftMailer直接使用SMTP发送电子邮件。我收到这个奇怪的错误:2011/09/2317:59:01[error]489#0:*1032FastCGIsentinstderr:"PHPWarning:stream_socket_client():SSLoperationfailedwithcode1.OpenSSLErrormessages:error:140770FC:SSLroutines:func(119):reason(252)in/home/nginx/websites/example.com/www/inc/lib/swift-mailer/lib/cl

php - 错误 101 (net::ERR_CONNECTION_RESET):连接已重置。 Wamp服务器

这个问题很奇怪而且随机。我正在处理一个包含4096个字符的文件,只有我在该文件中有4096个字符时才遇到此错误。我可以忍受这个,因为如果我只输入一个空格或更改文件的行尾,一切都会正常工作,但我想知道为什么会这样,为什么我只在4096个字符时出现这个错误,而且只在那个页面?更改MTU对我不起作用:http://maxqubit.wordpress.com/2012/07/04/error-101-neterr_connection_reset-the-connection-was-reset/额外信息:Apache/2.2.21(Win764)PHP/5.3.10该文件包含在另一个文件中

PhpMyAdmin The session id is too long and Session object destruction failed 警告消息

以下是完整的警告信息:Warningin.\libraries\session.inc.php#101session_start():Thesessionidistoolongorcontainsillegalcharacters,validcharactersarea-z,A-Z,0-9and'-,'Backtrace.\libraries\session.inc.php#101:session_start().\libraries\common.inc.php#352:require(.\libraries\session.inc.php).\index.php#12:requir