草庐IT

import-libraries

全部标签

php - 类 'CI_Driver_Library' 未找到 codeigniter 错误

我想使用session,所以我尝试自动加载。在application>config.php中,我执行$autoload['libraries']=array('session');但是我遇到了以下错误Message:Class'CI_Driver_Library'notfoundFilename:Session/Session.php 最佳答案 如果您使用Codeigniter3.0或更高版本,请使用:$autoload['drivers']=array('session');因为session在3.0版本之后是driver而不是l

php - Scope - 如何从 laravel excel import 返回错误?

我正在使用Maatwebsite/Laravel-Excel用于将一些数据导入我的Laravel应用程序。我循环遍历excel的行,验证数据然后保存它,但如果我收到验证错误,我想从Excel::load()函数外部返回$error变量。可能吗?publicfunctionimport(){Excel::load(Input::file('excelFile'),function($reader){foreach($reader->toArray()as$row){if($everythingOK){//dostuff}else{$errors[]='error';}}});return

PHP 警告 : PHP Startup: Unable to load dynamic library 'mcrypt.so'

我正在尝试在ubuntu06.04上使用composerupdate更新laravel,但每次我运行composerupdate时,总是会出现此警告。PHPWarning:PHPStartup:Unabletoloaddynamiclibrary'mcrypt.so'(tried:/usr/lib/php/20170718/mcrypt.so(/usr/lib/php/20170718/mcrypt.so:cannotopensharedobjectfile:Nosuchfileordirectory),/usr/lib/php/20170718/mcrypt.so.so(/usr/l

PHP 警告 : PHP Startup: Unable to load dynamic library '\xampp\php\e xt\php_pgsql. dll

我尝试使用zend框架,但是当我通过命令提示符创建项目时,警告即将到来,警告是PHP警告:PHP启动:无法加载动态库'\xampp\php\ext\php_pgsql.dll 最佳答案 在我的案例中,我的XAMPP安装在以下路径中:C:\xampp还有当我尝试在CMD上运行以下命令时,any_drive_and_path_here>phpphpFile.php它给了我像上面这样的警告错误消息,超过15+!!!(我必须执行以下步骤来解决每个警告消息。)然后我搜索了谷歌。我想到了这个想法,无论这些模块是什么,都将被加载,只是因为php.

php - 安装了 php71w-gd 并收到错误 GD Library extension not available with this PHP installation

我在centos7服务器和nginx网络服务器上使用laravel网络框架,我安装了php71w-gd,但当我想上传文件时仍然出现此错误Intervention\Image\Exception\NotSupportedExceptionGDLibraryextensionnotavailablewiththisPHPinstallation.你可能需要知道这个#php-i|grepgd/etc/php.d/gd.ini,gdgd.jpeg_ignore_warning=>1=>1 最佳答案 @HamedAbdollahi请检查以下步

php - Google Drive PHP Client Library 检索文件资源列表

我尝试在我的代码中使用这个函数:https://developers.google.com/drive/v2/reference/files/list如下:/***RetrievealistofFileresources.**@paramapiDriveService$serviceDriveAPIserviceinstance.*@returnArrayListofFileresources.*/functionretrieveAllFiles($service){$result=array();$pageToken=NULL;do{try{$parameters=array();i

php - Oracle 即时客户端 DYLD_LIBRARY_PATH 错误

我在OSX10.9和PHP5.4.19上使用Xampppformacos我已经安装了oracleInstantclient,我可以看到oci8在phpinfo中启用(如下):OCI8支持已启用版本1.4.9修订$Id:44bfa713983a99b3e59477f6532e5fb51b6dee94$事件持久连接0事件连接0我可以看到DYLD_LIBRARY_PATH也设置在我的phpinfo中。DYLD_LIBRARY_PATH/usr/local/instantclient/11.2.0.3但是当我尝试与php连接时,我现在两天都遇到了同样的错误:(Warning:oci_conne

php -v 返回 dyld : Library not loaded:/usr/local/opt/readline/lib/libreadline. 7.dylib

我试图安装Valet,但由于错误,我从brew中卸载了php,现在我重新安装了php,如果我转到apache上的phpinfo()文件,我可以看到PHPVersion7.1.23但如果我在控制台上执行php-v或其他php命令,我会得到:dyld:Librarynotloaded:/usr/local/opt/readline/lib/libreadline.7.dylibReferencedfrom:/usr/local/bin/phpReason:imagenotfoundAborttrap:6我在MacOsSierra上 最佳答案

php - 收到警告 "PHP Startup: Unable to load dynamic library"

我已将memcache设置为在Windows上工作并下载了php_memcache.dll文件。但现在每当我启动我的wamp服务器时,它都会向我显示一条警告:PHPStartup:Unabletoloaddynamiclibrary"C:/wamp/bin/php/php5.4.12/ext/php_memcache.dll"-%1isnotavalidWin32application.这个警告是什么意思?我该如何纠正它。我正在使用Windows7(64位)。 最佳答案 如果您知道用于构建PHP的可视化C(VC)版本,请确保对php

php - 通过 cURL 访问 import.io API 时无法获取 JSON 结果中的实际 html

当我通过复制api-url在浏览器中手动访问导入api时,我得到了正确的json结果,其中html字段也有html结果。但是,当我使用PHP通过cURL访问相同的apiurl时,我只会在以下json结果中得到它:{"name":"my_html","type":"HTML"}..所以没有实际的html。我使用以下函数在php中cURLAPI:publicfunctionqueryio($connectorGuid,$url,$input,$userGuid,$apiKey){$io_url="https://api.import.io/store/data/".$connectorGu