草庐IT

ERR_SSL_PROTOCOL_ERROR

全部标签

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

php - fatal error : Call to a member function getId() on null in doctrine

我说错了,Fatalerror:CalltoamemberfunctiongetId()onnull.但是我如何检查元素,这是我的代码$infoArray['groupId']=$info->getId();$infoArray['name']=$info->getName();$infoArray['addressLine1']=$info->getAddressLine1();$infoArray['addressLine2']=$info->getAddressLine2();$infoArray['isActive']=$info->getActive();$infoArray

PHP7 + curl (SSL/TLS) 给出 502 Bad Gateway

我正在开发一个使用DropboxSDK来做一些事情的网页。其中大部分通过CLI发生,但必须在浏览器中完成一件事。不过,我偶然发现了一个有趣的问题。$dbxClient=newdbx\Client($accountToken,'xxx/'.VERSION);$folderMetadata=$dbxClient->getMetadataWithChildren("/");在CLI中运行这段代码效果很好。然而,在浏览器中运行它会给我一个502。困惑的我启动了xdebug并追踪了问题出现的位置。我发现是Dropbox的curl调用导致的,所以我写了一个小示例脚本来查看curl是否有效。它没有。

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