草庐IT

install_parse_failed_no_certifica

全部标签

php - Facebook 图形 API : Parsing the output

我正在尝试通过此调用使用FBGraphAPI获取friend的姓名:$friends=file_get_contents('https://graph.facebook.com/me/friendsaccess_token='.$session["access_token"]);echo"Friends:$friends\n";这给了我一个表单列表:{"data":[{"name":"ABCXYZ","id":"12212839"},{"name":"PQRGHI","id":"5004678"}]}我希望能够仅将NAMES存储在数组中。我如何使用$friends来获取名字?$frie

php - mssql_execute 失败, "stored procedure execution failed"

我目前正在使用以下查询成功连接到位于Windows2008上的SQL数据库;$result=mssql_query("EXECdbo.stored_procedure_name@param_level=2");我的查询基于用VB/ADO编写的现有代码,看起来像;Iflevel=""Thenlevel=1cmdTT.ActiveConnection=connStrTest1setobjParam=cmdTT.CreateParameter("@param_level",adInteger,adParamInput,4,level)cmdTT.Parameters.AppendobjPar

php - 导致 'Fail to open page' 的 Slim PHP 框架

我已经使用SlimPHP框架设置了一个RESTAPI,它在使用请求时完美运行,即http://mysite.com/class/id.但是当我导航到http://mysite.com/时,我在Safari中收到以下错误:Safarican’topenthepage“http://mysite.com/”.Theerroris:“cannotdecoderawdata”(NSURLErrorDomain:-1015)PleasechooseSafari>ReportBugstoApple,notetheerrornumber,anddescribewhatyoudidbeforeyous

php - Url 在 codeigniter 中无法正常工作,给出错误 "No input file specified"。

我将我的codeigniter应用程序上传到演示服务器。Homepage打开正常,但其他页面显示error.我将配置文件中的baseurl更改为:$config['base_url']='http://globalcfos.com/cfoask/';它在本地运行良好。知道如何解决吗? 最佳答案 看起来您是在GoDaddy上托管的,之前遇到过同样的问题,将您的.htaccess文件更改为以下应该可以解决它。RewriteEngineOnRewriteBase/RewriteCond%{REQUEST_FILENAME}!-fRewri

php - file_get_contents() 无法打开流 : No such file or directory

我正在编写一些php脚本来更新我网站上的代码。为了做到这一点,我编写了以下行来检查更新版本,并从我用来分发更新的地方获取名称,然后创建该名称的链接。我做过这样的事情。$filename="http://www.hf-live.com/codeupdate/Get_Files_Name.php";$contents=file_get_contents($filename);echo$contents;我收到这个错误failedtoopenstream:Nosuchfileordirectory.即使文件存在,我仍然遇到同样的错误。我已将allow_url_fopen开启为on。上面的代码

php - 压缩存档 PHP : Close() returns false with no error message

我正在尝试使用基于数组结构的目录树创建一个zip文件。我已经在使用thisanswer当我需要从目录树创建一个zip文件时,但在这种情况下,所有文件都在同一目录中,目录树基于数据库中的其他数据。我已经检查过所有文件都在正确的路径中,并且foreach循环正在运行。$zip->close发生错误。这就是代码(原始数组在每一层都有很多条目):$zip_array=array('Level1'=>array('Level2'=>array('file1'=>'/var/www/html/pdf/683026577.pdf','file2'=>'/var/www/html/pdf/683026

php - 验证码 file_get_contents() : SSL operation failed

我正在为我的网页使用GooglereCaptcha。在测试模式下一切正常。无SSL。当我在生产环境中测试我的网页时,出现以下错误:Warning:file_get_contents():SSLoperationfailedwithcode1.OpenSSLErrormessages:error:14090086:SSLroutines:SSL3_GET_SERVER_CERTIFICATE:certificateverifyfailedin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.phponline68Warni

PHP 警告 : require_once(/var/www/html/wp-config. php) : failed to open stream: Permission denied in/var/www/html/wp-load. php on line 37

我正在apache上创建一个Wordpress应用程序服务器,在访问url时收到错误500。因此,我确实检查了httpd/logs/error_log,以下是错误[SunJan1522:42:54.4403492017][:error][pid767][client10.203.116.148:9173]PHPWarning:require_once(/var/www/html/wp-config.php):failedtoopenstream:Permissiondeniedin/var/www/html/wp-load.phponline37[SunJan1522:42:54.44

php - Laravel 5 错误 SQLSTATE[HY000] [1045] 拒绝用户 'forge' @'localhost' 访问(使用密码 : NO)

有时(大约每20个请求)我会收到此错误。但是下一个(下一秒),同样的请求,就可以了。我不知道为什么第一个失败了。有时我会得到另一个错误:Nosupportedencrypterfound.Thecipherand/orkeylengthareinvalid.我的.env数据库参数没有问题。我已经使用phpartisankey:generate生成了一个key此key在我的.env文件中的APP_KEYkey下我的config/app.php有一个key'key'=>env('APP_KEY'),'cipher'=>'AES-256-CBC'有人知道这是怎么发生的吗?

php - file_put_contents(.../bootstrap/cache/services.json) : failed to open stream: No such file or directory

我在运行任何phpartisan命令时一直收到此错误。[ErrorException]file_put_contents(/Applications/MAMP/htdocs/code/bheng/md-bheng/bootstrap/cache/services.json):failedtoopenstream:Nosuchfileordirectory我该如何阻止它? 最佳答案 编辑-如果services.json文件不存在,运行phpartisanserve然后停止强制创建文件。请参阅:laravelservices.jsonn