草庐IT

err_ssl_protocol_error

全部标签

php - ? : in old version of PHP causing parse error

我一直在使用SimpleImage类进行图像处理,但它在一个特定站点上不起作用服务器上的PHP版本是5.1.6-所以六岁了解析错误:语法错误,意外的“:”在...引起错误的有问题的行$height=$height?:$width;$quality=$quality?:$this->quality;$filename=$filename?:$this->filename;有解决办法吗? 最佳答案 三元运算符简写$val1?:$val2是introducedinPHP5.3,并且与$val1相同?$val1:$val2

php - Symfony 2/存储库 : Error: __clone method called on non-object

我刚开始使用Symfony,但我不明白为什么在存储库中创建自定义函数时会出现此错误。我的实体Category.php:name;}/***Getid**@returninteger*/publicfunctiongetId(){return$this->id;}/***Setname**@paramstring$name*@returnCategory*/publicfunctionsetName($name){$this->name=$name;return$this;}/***Getname**@returnstring*/publicfunctiongetName(){retur

nginx 虚拟主机 : php5-fpm-sock error

我正在尝试为全新的ubuntu/php5.5/nginx安装设置一个虚拟主机etc/nginx/sites_available/mydomain.com:server{listen80default_server;root/home/www/mydomain.com/public/;indexindex.phpindex.htmlaccess_log/var/log/nginx/access.log;error_log/var/log/nginx/error.log;server_namemydomain.com;location~\.php${try_files$uri=404;fa

php - 访问Vagrant box中的错误日志查看 'internal server errors'

我有一个vagrantbox设置,我想调试我在Magento应用程序中收到的一些“500内部服务器”错误我在我的目录结构中看到了日志文件夹,但在这个目录中看不到任何access.log或error.log文件,我需要什么来打开它吗? 最佳答案 记住错误的日志文件是exception.log,通知/警告是system.log。这两个文件都在您的magento安装的var/log下。有时magento无法捕获错误。在这种情况下,错误要么打印到浏览器,要么保存到Apache日志。查看/var/log/apache/下的apache日志(文

PHP GD : The image cannot be displayed because it contains errors

我尝试通过PHPGD创建验证码。但不幸的是我遇到了一个问题!PHP告诉我:Theimage“http://127.0.0.1/par.php”cannotbedisplayedbecauseitcontainserrors.我的代码是这样的 最佳答案 $im=@imagecreatetruecolor(120,20)ordie('CannotInitializenewGDimagestream');你首先隐藏真正的错误并尝试显示一些东西......因为你不去寻找它而无法显示,并公开图像,无论它是否真的生成。然后你继续使用stacko

php - MAMP PHP fatal error : Allowed memory size exhausted

我知道当网站位于本地服务器上时,诊断和帮助会有点困难,但我希望其他人遇到过这个问题,或者对发生什么以及为什么发生有一个大概的了解?这与wordpress有关,但我觉得大部分问题与它无关,而是集中在MAMP上,我得到了这个错误。我现在刚刚尝试将另一个网站迁移到我的本地服务器,但出于某种原因,它根本不起作用……我得到的只是一个白屏。我使用了来自http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging的错误记录技术/** *Thiswilllogallerrorsnoticesandwarningstoa

php - SSL 证书错误 : self signed certificate in certificate chain in using Twilio on my Laravel Website

我正在我的本地主机上测试我的代码,我尝试了dtisgodsson/laravel4-twilio在我当前的网站上申请,但出现此错误SSLcertificateproblem:selfsignedcertificateincertificatechain在我将此代码放入index.blade.php之后:Twilio::to('119061539155')->message('Thisisso,damn,easy!');我需要做什么来消除这个错误? 最佳答案 此处为Twilio开发人员布道师。此错误是由于您的PHP安装没有包含最新的C

php - Google Measurement 协议(protocol)返回 GIF89a������,D;

我正在使用GoogleMeasurementProtocolAPI保存展示次数。它工作正常,但虽然我没有回应任何东西,但它返回GIF89a������,D;在页面上可见。知道如何隐藏它吗?我正在使用HTTPpost请求发送数据。$url='http://www.google-analytics.com/collect';$fields_string='';$fields=array('v'=>1,'tid'=>'UA-xxxxxxx-xx','cid'=>xxx,'t'=>'event','ec'=>'category','ea'=>'impression','el'=>'label'

php - 通过 https : SSL3_GET_SERVER_CERTIFICATE 使用 php 加载外部 xml 文件时出错

我无法加载xml文件。这段代码效果很好:$url='http://www.w3schools.com/xml/note.xml';$xml=simplexml_load_file($url);print_r($xml);但是这个$url='https://www.boardgamegeek.com/xmlapi2/thing?id=105551';$xml=simplexml_load_file($url);print_r($xml);没用。我收到此错误:Warning:simplexml_load_file():SSLoperationfailedwithcode1.OpenSSLE

PHP PhantomJS 忽略 SSL 证书

我想解析一个HTTPS网页,但解析时它是空白的。所以我认为这与SSL证书有关。我怎么能忽略这个?我正在使用php-phantomjs. 最佳答案 如问题PhantomJSfailingtoopenHTTPSsite中所示,您可能需要添加以下命令行选项来修复SSL/TLS问题:phantomjs--ssl-protocol=any--ignore-ssl-errors=true--web-security=falsescript.js在php-phantomjs中的用法是一个littledifferent,但您可以使用:$client