草庐IT

install_parse_failed_no_certifica

全部标签

php - 无法使用 Composer 下载和安装 Laravel 5。错误 : HTTP request failed

我无法使用composer1.2.0(最新版本)下载lavarvel安装程序收到的错误:无法打开流:HTTP请求失败!我用谷歌搜索,但找不到解决此问题的答案。如果可能,有人请尝试运行这个命令composerglobalrequire"laravel/installer"来检查它是否有效?我认为指向packaglist的链接不再有效,但我不确定。C:\wamp\www\st>composerself-update-vvvReading./composer.jsonLoadingconfigfile./composer.jsonCheckedCAfileC:\Users\Louis\App

php - (Docker) 收到错误 : docker-php-source: no such file or directory when building docker file

当我尝试构建docker文件时:https://github.com/docker-library/php/blob/3f43309a0d5a427f54dc885e0812068ee767c03e/7.1/Dockerfile命令:dockerbuild-tphp_image.我遇到了以下错误:Step14:COPYdocker-php-source/usr/local/bin/lstatdocker-php-source:nosuchfileordirectory谁能帮我找出问题所在?谢谢 最佳答案 您没有正确的dockerbu

php - fatal error : Class 'Memcache' not found (installed with pecl)

我通过ssh安装了memcache,使用:$peclinstallmemcache这是输出:https://pastee.org/w63sy并将这一行添加到etc/php.ini:extension=memcache.so尝试初始化时:/*MEMCACHE*/$memcache=newMemcache();$memcache->pconnect('localhost',11211);我得到:Fatalerror:Class'Memcache'notfoundin/home/piscolab/public_html/website.com/includes/sql.phponline25

php - 错误的 DNS 设置,php_network_getaddresses : getaddrinfo failed Name or service not known, nslookup

问题原来是这样的:Warning:file_get_contents()[function.file-get-contents]:php_network_getaddresses:getaddrinfofailed:Nameorservicenotknownin/home///ppk_hotweb.class.phponline58我也使用了cURL,它只是返回null,仅此而已。(文件和cURL)都已启用。尝试了file_get_contents('google.com')并且成功了!为什么file_get_contents('domain.com.au')不起作用?所以我开始阅读相

php - GAE、PHP 和 GCM : failed to open stream: HTTP request failed! HTTP/1.0 405 方法不允许

我正在开发一个Web应用程序(使用适用于PHP的GAE),它会在某些内容可供下载时通知Android客户端(通过GCM-GoogleCloudMessaging)。下面的PHP脚本应该可以完成工作:$json=array('data'=>array(...),'registration_ids'=>array(...));$data=json_encode($json);$context=array('http'=>array('method'=>'post','header'=>'Authorization:key=MY_SECRET_KEY'."\r\n".'Content-Typ

php - SOAP 错误 : Encoding: object has no 'FinalBookingDate' property

在开始之前,我知道,这个错误意味着我应该定义属性FinalBookingDate,但只要继续阅读,您就会理解我的观点。网址是:http://bestbuyhotel1.cangooroo.net/ws/2013/ClientBackOffice_b.asmx?op=getBookingList我首先使用SoapUi进行测试,并成功获得了我需要的列表:在php上,我只能得到这个响应:来自php的SoapClient是:$params=array('soap_version'=>SOAP_1_2,'compression'=>SOAP_COMPRESSION_ACCEPT|SOAP_COM

php - 错误 : No route found for "GET/app/example"

我刚刚使用SymfonyInstaller在我的Windows10笔记本电脑上创建了一个Symfony应用程序.然后,我开始了:phpapp/consoleserver:run然后,我打开了http://localhost:8000/app/example如文档中所述,但我收到以下错误消息:ERROR-UncaughtPHPExceptionSymfony\Component\HttpKernel\Exception\NotFoundHttpException:"Noroutefoundfor"GET/app/example""atC:\Users\JVerstry\morepath\

php - PHP函数parse_ini_file()真的有那么危险吗?

一些托管服务提供商禁用了PHP函数parse_ini_file()。任何在那里使用它的尝试都将失败,并显示错误“parse_ini_file()出于安全原因已被禁用”。这种配置是如此普遍,以至于作为最流行的CMS之一的Joomla避免直接使用parse_ini_file()而是将任务分为两步:使用file_get_contents()读取文件内容使用parse_ini_string()解析值,这是奇怪的允许,因此不被视为安全风险(WTF?)我的问题是,如何使用parse_ini_file()可以被视为安全威胁,或者如何禁用PHP函数parse_ini_file()可以提高安全性?会不会

php - Firebase FCM 错误 JSON_PARSING_ERROR : Unexpected token END OF FILE at position

我正在尝试使用php通过firebase的fcm服务发送通知。这是我到目前为止得到的:$ch=curl_init();$payload=['to'=>'/topics/'.ANDROID_TOPIC,'notification'=>['message'=>1]];$headers=['Content-Type:application/json','Content-length:'.sizeof(json_encode($payload)),'Authorization:key='.FIREBASE_KEY];curl_setopt($ch,CURLOPT_URL,'https://fc

PHP 7.2 : no additional . ini 文件已解析

我有一个ubuntu服务器(16.04.4LTS),apache2运行php7.0(Apache2.0Handler)和php7.2(FPM/FastCGI)。PHP7.2工作正常,只是没有加载任何扩展——比如json或其他任何东西。查看我的phpinfo():SystemLinuxsrvindkdif4.4.0-62-generic#83-UbuntuSMPWedJan1814:10:15UTC2017x86_64BuildDateJun22201808:44:50ServerAPIFPM/FastCGIVirtualDirectorySupportdisabledConfigura