
PHP
失落小羊
技术是一生的爱好
展开
-
centos上编译安装nginx1.28+mariadb5.5.30+php5.4.14+webbench1.5
centos上编译安装nginx1.28+mariadb5.5.30+php5.4.14+webbench1.5http://wenku.baidu.com/view/f918b9d6a58da0116c174946.htmlhttp://database.51cto.com/art/201306/399720.htm转载 2013-09-16 10:12:25 · 596 阅读 · 0 评论 -
YII-Note2
CREATETABLE Employee ( id MEDIUMINT UNSIGNED NOTNULL AUTO_INCREMENT PRIMARYKEY, departmentId TINYINT UNSIGNED NOTNULL COMMENT"CONSTRAINT FOREIGN KE转载 2013-12-24 15:19:05 · 464 阅读 · 0 评论 -
phpMyAdmin部署CentOS出现403错误
是SELinux的新特性搞的鬼。我把目录或文件设成了user_home_t类型,因此apache的进程没有权限,无法访问。针对 Apache的进程所使用的SELinux target policy规定了apache的进程只能访问httpd_sys_content_t类型的目录或文件。解决办法:# chcon -R -t httpd_sys_content_t /var/ww转载 2014-01-10 21:14:33 · 2025 阅读 · 1 评论 -
YII代码风格
Yii 推荐命名变量 、 函数和类时使用驼峰风格 , 即每个单词的首字母大写并连在一起 , 中间无空格 。 变量名和函数名应该使它们的第一个单词全部小写 , 以使其区别于类名 。 对私有类成员变量来说 , 我们推荐以下划线作为其名字前缀 ( 例如: $_actionList ) 。 一个针对Controller类名的特殊规则是它们必须以单词 Controller 结尾转载 2014-03-11 14:42:07 · 621 阅读 · 0 评论 -
phpQuery-分析网页文本的新利器(DOM处理利器)
http://blog.163.com/lgh_2002/blog/static/44017526201072705050937/转载 2014-03-16 16:00:21 · 612 阅读 · 0 评论 -
centos上安装xdebug
yum install php-develcd xdebugdir./configure --enable-xdebugmakemake install add zend_extension="/wherever/you/put/it/xdebug.so"> to php.ini原创 2014-03-10 11:29:24 · 605 阅读 · 0 评论 -
Yii radioButtonList 设置默认选中项
网上看了很多,都没有讲到设置默认选中项,或者我比较笨,没找到,最后我只能自己追Yii的代码。先看语法public string radioButtonList( CModel $model, //模型 string $attribute, //属性 array $data, //用于生成单选按钮组的选项的数据 (value=>display) arr转载 2014-03-15 22:48:16 · 853 阅读 · 0 评论 -
CentOS升级PHP5.4真不容易
从昨晚一直研究到现在http://www.myexception.cn/linux-unix/1226720.html ;问题解决:编译PHP要添加选项 --with-apxs2=/usr/local/apache2/bin/apxsapxs 通过 安装 httpd-devel产生安装后要在httpd.conf 添加 AddType 配置php然后测试原创 2014-03-29 12:16:57 · 662 阅读 · 0 评论 -
PHP匹配中文的正则表达式
http://sunzy.org/index.php/tag/utf8preg_match(“/^[x{4e00}-x{9fa5}]{1,4}/u”,$str);加入参数u,错误消失,匹配正确。一般来说,指定代码点的形式有3种:『uxxxx』、『u{xxxx}』、『x{xxxx}』(其中的xxxx为编码的值,u之后必须有4位 16进制数字)。.NET、Java、转载 2014-03-20 23:11:06 · 565 阅读 · 0 评论 -
Learning the Yii Framework-note1
Tip: If you’re going to be using Yii for multiple sites on the same server, place the framework folder in a logical directory relative to every site. That way, when you update the framework, you’l转载 2013-12-24 10:57:58 · 569 阅读 · 0 评论 -
Learning the Yii Framework
http://www.larryullman.com/series/learning-the-yii-framework/转载 2013-12-24 09:53:58 · 473 阅读 · 0 评论 -
Yii - Model-View-Controller (MVC)
http://www.yiiframework.com/doc/guide/1.1/en/basics.mvc转载 2013-10-17 17:23:13 · 697 阅读 · 0 评论 -
Yii - DAO
http://www.yiiframework.com/doc/guide/1.1/en/database.dao$connection=new CDbConnection($dsn,$username,$password);$connection->active=true;SQLite: sqlite:/path/to/dbfileMySQL: mysql:hos转载 2013-10-22 11:45:48 · 584 阅读 · 0 评论 -
Yii - AR
http://www.yiiframework.com/doc/guide/1.1/en/database.aryou should overrideCActiveRecord::getDbConnection(). TheCActiveRecord class is the baseclass for all AR classes.Tip: There are转载 2013-10-22 13:48:12 · 675 阅读 · 0 评论 -
成为一名PHP专家其实并不难
http://www.youkuaiyun.com/article/2013-11-18/2817534-becoming-php-professional-missing-link本文作者Bruno Skvorc是一名资深的Web开发者。在这篇文章里主要是讲述成为一名专业的PHP专家所要经历的过程,以及在这个过程里要如何学习掌握技巧和对工具的舍取。(以下为编译内容)当阅读各种和P转载 2013-11-19 17:33:06 · 855 阅读 · 0 评论 -
PHP一些文章
http://www.open-open.com/lib/view/open1333943119139.htmlhttp://www.open-open.com/lib/view/open1332904714233.htmlhttp://www.open-open.com/lib/view/open1324369778733.html转载 2013-12-06 16:27:50 · 547 阅读 · 0 评论 -
YII- 教程
http://www.icultivator.com/program/yii转载 2013-12-03 15:40:55 · 499 阅读 · 0 评论 -
Laravel
http://laravel-cn.com/转载 2013-12-29 12:43:09 · 887 阅读 · 0 评论 -
PHP开发框架流行度排名:Laravel居首
http://www.youkuaiyun.com/article/2014-01-03/2818006-PHP-framework-Laravel在项目开发中,一些架构和代码都是重复的,为了避免重复劳动,于是各种各样的框架诞生了。在PHP开发中,选择合适的框架有助于加快软件开发,节约宝贵的项目时间,让开发者专注于功能的实现上。由于流行的框架经过了大量项目的检验,所以使用框架还有助转载 2014-01-04 17:50:35 · 627 阅读 · 0 评论 -
how to use regular expressions in yii
http://stackoverflow.com/questions/20455022/how-to-use-regular-expressions-in-yiiYou can try to use match (CRegularExpressionValidator) rule to validate the attribute value with the specif转载 2014-03-20 22:59:42 · 684 阅读 · 0 评论