草庐IT

CI_Driver_Library

全部标签

php - 删除 CI ubuntu 12.04 中的 index.php 文件

我想从CI的文件路径中删除index.php文件。我正在使用ubuntu12.04。我尝试了几乎所有的论坛结果,但没有成功。我把CI文件夹放在这个路径下。http://localhost/xxx/CI/我有apacherewritemodenable。sudoa2enmodrewriteModulerewritealreadyenabled我的conf.php文件中也有这个$config['uri_protocol']='AUTO';$config['base_url']='http://localhost/xxx/CI/';$config['index_page']='';$conf

php - imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error - Laravel

我有以下2条路线:-Route::get('resize/avatar',function(){$image='avatar.jpg';$target_filename_here='thumbnail_'.$image;$ffs=imagecreatefromjpeg($image);$size=getimagesize($image);$dst=imagecreatetruecolor(100,100);$dds=imagecopyresampled($dst,$ffs,0,0,0,0,100,100,$size[0],$size[1]);$dn=imagepng($dst,$tar

php - 如何使用我的自定义 Symfony 3.0 Library/Bundle/HowIsCalled

通过查看这些文档:http://symfony.com/doc/current/cookbook/bundles/configuration.htmlhttp://symfony.com/doc/current/components/dependency_injection/introduction.html#basic-usage我制作了这个库:0?$value:0;}protectedfunctionsetThumbWidth($value){$thumb_max_width=$value>0?$value:0;}/***FunctionthatLoadstheconfigurat

docker: Error response from daemon: driver failed programming external connectivity on endpoint tomc

docker:Errorresponsefromdaemon:driverfailedprogrammingexternalconnectivityonendpointtomcat1(9d06342addfe339a1bbf0876ae4534410f58cc65fa0b3b6516f282224af68202):(iptablesfailed:iptables--wait-tnat-ADOCKER-ptcp-d0/0--dport8080-jDNAT--to-destination172.17.0.2:8080!-idocker0:iptables:Nochain/target/matchb

php - Travis-CI:即使使用自动加载器也找不到类

我对Travis有点陌生,我现在正在试验它。我在Github上上传了我的PHP项目当我让它通过Travis进行测试时它失败并给我这个错误。PHPFatalerror:Class'controllers\Welcome'notfoundin/home/travis/build/ezylot/PHPSkeleton/tests/controllers/welcomeTest.phponline4我使用自动加载器加载类,在我的本地机器上没有问题。我在bootsrap.php中包含自动加载器,在PHPUnitKonfiguration-XML文件中包含Bootstrap。

php - WordPress/Codeigniter 集成 - 将 WP 简码属性传递给 CI 脚本

我已成功将WordPress与Codeigniter集成。我创建了一个插件,它添加了一个可以在编辑器中使用的简码。这也按预期工作。这是我的代码:函数get_property_filters($atts){foreach($attsas$key=>$value){$_POST['property_type']=$value;}返回“用于替换WP页面中的简码的东西”;}add_shortcode('property_filters','get_property_filters');我需要做的是从我的WP插件发送一个POST变量到CI脚本,因此行:$_POST['property_type'

php - 如何在 CI 中使用 OR 和 AND 运算符进行查询?

我尝试通过ActiveRecords在Codeigniter中进行查询:if(isset($data['where']['and'])){$this->db->where($data['where']['and']);}if(isset($data['where']['or'])){$this->db->or_where_in('idSpec',$data['where']['or']);}我想得到:WHEREname=1AND(idSpec=2ORidSpec=3ORidSpec=4);但现在我得到:WHEREname=1ORidSpec=2ORidSpec=3ORidSpec=4;

php - Laravel - [PDOException] : Could not Find Driver in PostgreSQL - MAC OS

我在stackoverflow上看了很多关于这个问题的帖子,但我仍然遇到同样的问题:php.ini文件中列出了以下内容:extension=php_pdo_pgsql.dllextension=php_pgsql.dll环境文件:DB_CONNECTION=pgsqlDB_HOST=127.0.0.1DB_DATABASE=oweDB_USERNAME=postgresDB_PASSWORD=password我重新启动了Apache,重新启动了计算机,并且在执行迁移时出现了以下错误:me$phpartisanmigratePHPWarning:PHPStartup:Unabletolo

PHP ZMQ 扩展 : Unable to load dynamic library

我正在Windows10上开发Wampserver。我正在使用一个名为ZMQ的扩展。我从以下位置下载了DLLS:https://pecl.php.net/package/zmq/1.1.3/windows我之前使用的是PHP5.6的扩展版本并且它有效。但是该扩展有一个错误,所以我决定将我的php版本升级到7.0.4并尝试新版本的扩展。扩展已成功安装并出现在phpinfo()中,但是当我尝试从命令行(或使用该扩展的CLI服务)运行“php-v”时,出现以下错误:“警告:PHP启动:无法加载动态库'D:/wamp64/bin/php/php7.0.4/ext/php_zmq.dll'-找不

PHP 启动 : Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found

我们在php中连接oracle服务器遇到了一个大问题我做了什么第一步:安装Windows732位第2步:安装XAMPP32(包括:Apache2.4.29、PHP7.1.11、phpMyAdmin4.7.4、OpenSSL1.0.2、XAMPP控制面板3.2.2)步骤:即时客户端包-基本:运行OCI、OCCI和JDBC-OCI应用程序所需的所有文件下载instantclient-basic-nt-12.2.0.1.0.zip并解压到c盘,名称为instantclient_12_2第5步:在路径“c:\instantclient_12_2”中设置环境第6步:编辑php.ini文件并启用e