草庐IT

ssl_error_no_cypher_overlap

全部标签

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 - Laravel Eloquent : belongsTo relationship - Error: Trying to get property of non-object

第一次尝试laraveleloquentrelatioinstip我知道这很简单,但我收到这个错误,不知道它出了什么问题我在数据库中有2个表,news和news_image在数据库中表格:newsid|header|detailsnews_imageid|image|news_id并且有2个模型News,newsImage新闻图像模型:classnewsImageextendsEloquant{protected$table='news_image';publicfunctionnews(){return$this->belongsTo('News');}}新闻模型classNewse

php - Bluemix 上的 PDO fatal error

我真的坚持让PDO在bluemix中与PHP一起工作。我无法使用它,每次出现此错误时:Fatalerror:Class'PDO'notfoundin...然后我在.bp-config下添加了options.json\{"PHP_VERSION":"{PHP_55_LATEST}","WEB_SERVER":"httpd","PHP_EXTENSIONS":["bz2","zlib","openssl","fpm","tokenizer","curl","mcrypt","mbstring","pdo","mysqli"]}然后我也尝试使用.bp-config下的php.ini\disp

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 - fatal error :在第 685 行的 class-requests.php 中调用未定义的方法 Requests_Response::is_redirect()

当我升级到wordpress4.6时遇到问题(我使用的是freevision的Rosie主题)。我的网站在主页url和其他url中工作。但是我无法访问我的管理页面(http://www.kidswallpainting.com/wp-admin)。出现以下错误fatalerror:调用/home/content/83/10792583/html/riot/kidswallpainting/wp-includes/class-requests.php中的未定义方法Requests_Response::is_redirect()第685行尝试了以下。通过将插件文件夹重命名为插件。按住。但这

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

php - 如何读取此 xml,获取 "parser error : CData section not finished"

我正在尝试读取此xml:xmlrssfile但没有成功..有这个错误Warning:simplexml_load_file():http://noticias.perfil.com/feed/:232:parsererror:CDatasectionnotfinishedLasolalecturadelosdatosestadísticosdespinD:\xampp\FerreWoo\scrap-rvnot.phponline43Warning:simplexml_load_file():Isis,conloquehabríalogradounnuevorespaldoasuspro

php - 如何在 PHP 中捕获 Stripe fatal error ?

我正在使用Stripe.js元素启动一个应用程序。使用Stripe提供的测试卡号,我没有问题。一切都按预期工作。我现在专注于错误处理。使用测试卡4000000000000002处理故意拒绝的卡时,出现此错误:Fatalerror:UncaughtStripe\Error\Card:Yourcardwasdeclined.inC:\Apache24\htdocs...\vendor\stripe\stripe-php\lib\ApiRequestor.php:128fromAPIrequest{token}....现在我假设这不是PHPfatalerror(不能在try/catchblo

php - "Type error: Too few arguments to function App\Http\Controllers\UserController::attendance(), 0 passed and exactly 1 expected"

我的数据库中有两个表,分别是用户表和出勤表。我现在想做的是根据用户在与他们的个人资料相关联的出勤View中显示数据库中的出勤数据。这是我在userController中的考勤功能。publicfunctionattendance($id){$user=UserProfile::findOrFail($id);$this->authorize('modifyUser',$user);returnview('user.attendance',['user'=>$user]);}这是我到出勤View的路径。Route::get('/attendance/',['as'=>'user.atte