
PHP
嘻嘻哈哈 ^ _ ^ !
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mac上用XMAPP搭建PHP环境
1.在百度上搜索 XMAPP for Mac 下载 安装 2.shift + cmd + G 打开前往文件夹,然后输入以下地址: /Applications/XAMPP/etc/httpd.conf 打开后查找 Listen 80 会看到以下的代码片段 # # Listen: Allows you to bind Apache to s原创 2016-12-20 14:37:55 · 970 阅读 · 0 评论 -
php-CodeIgniter框架 修改
修改只能在 数据库中看到 不能再view 中显示出来 public function update_view() { // where('字段名','字段值');----条件语句 $this->db->where('title', "110"); // update('表名',修改值的数组) $this->db->update('news1',原创 2017-02-07 12:49:46 · 288 阅读 · 0 评论 -
php-CodeIgniter框架 删除
删除 也是只能在 数据库中 才能看到 // 删除 public function delete_x() { // title 为 3333 的 删除 $this->db->where('title', "3333"); $this->db->delete('news1'); } 把 title 为 3333 的删除了原创 2017-02-07 12:54:40 · 216 阅读 · 0 评论 -
phpstorm配置Xdebug进行调试PHP教程-新
运行环境: PHPSTORM版本 : 8.0.1 PHP版本 : 5.6.2 xdebug版本:php_xdebug-2.2.5-5.6-vc11-x86_64.dll ps : php版本和xdebug版本一定要相对应 1. PHP安装xdebug扩展 php.ini的配置,下面的配置仅供参考,路径要换成自己的! [xdebug] zend_ext原创 2017-01-17 15:22:35 · 449 阅读 · 0 评论 -
PHP-CodeIgniter框架向数据库插入数据
1.首先创建数据库 里面有 title text 字段 2.在 model 层 2-1 News_model 是自己创建的 Model 2-2 public function __construct() 是继承 CI框架父累方法 重写函数 class News_model extends CI_Model { // 确保你的 数据库配置 正确。 pu原创 2017-01-19 14:28:30 · 798 阅读 · 0 评论 -
PHP-CI 查询所有数据-按条件查询数据
1.view h2><?php echo $title; ?>h2> // 用 $news_item 遍历 根据 $newsXjp_where这个key值取出来的 数据库 ($newsXjp_where as $news_item): ?> h4> 这是 信息读取页面 h4> h3>$news_item['title']; ?>h3> div原创 2017-01-19 14:47:36 · 2863 阅读 · 0 评论 -
php遍历目录与文件夹
$dir="E:/New1/"; function my_scandir($dir) { $files=array(); // is_dir()--> 函数检查指定的文件是否是一个目录。 if(is_dir($dir)) { // opendir()--> 打开一个目录,读取它的内容,然后关闭: if($handle=opendir(原创 2017-01-19 15:02:01 · 349 阅读 · 0 评论