随笔分类 -  php

摘要:首先输入 apt-cache search curl | grep php 查询curl的php支持名字 可能会返回如下内容: php5-curl - CURL module for php5 安装: sudo apt-get install php5-curl 重启apache sudo /etc/init.d/apache2 restart 阅读全文
posted @ 2013-04-05 19:16 WingPig99 阅读(189) 评论(0) 推荐(0)
摘要:在使用CI框架的使用经常碰到跳转和路径方面的问题,site_url()和base_url()很容易混淆,下面来说说他们的区别!假如你config文件里面的base_url和index_page是这样定义的:config['base_url'] = "http://domain.com/";config['index_page'] = "index.php";那么你若使用site_url("news/php/2");则实际url为http://domain.com/index.php/news/php/2 阅读全文
posted @ 2013-03-12 14:21 WingPig99 阅读(480) 评论(0) 推荐(0)
摘要:php中utf-8编码下用正则表达式匹配汉字的最终正确表达式——/[\x{4e00}-\x{9fa5}]/uphp中utf-8编码下用正则表达式匹配汉字的最终正确表达式——/[\x{4e00}-\x{9fa5}]/u\u4e00-\u9fa5 (中文)\x3130-\x318F (韩文\xAC00-\xD7A3 (韩文)\u0800-\u4e00 (日文) 阅读全文
posted @ 2013-01-27 19:20 WingPig99 阅读(197) 评论(0) 推荐(0)
摘要:关于codeignite表单验证。 $this->load->helper(array('form','url')); $this->load->library('form_validation'); $this->form_validation->('input','input','require 阅读全文
posted @ 2013-01-27 11:57 WingPig99 阅读(210) 评论(0) 推荐(0)