现在位置 >首页 > 所有关于PHP的文章
technicalprinciple category ci category
发表于642 天前 LAMP, PHP>CI 评论数 5
CodeIgniter  HMVC  Matchbox
Current version: RC2 Forum Thread: http://codeigniter.com/forums/viewthread/128084/ Last update: 2009-09-18 Matchbox is a set of extended libraries that lets you organize your application in small components (modules). These modules have several advantages, the main one being portability. Modules are stored in their own folders and so they can be reused in other applications or shared between users by copying just that one folder. Installation If you can run CodeIgniter, y...
阅读全文
使用自由加密软件PHP screw对PHP源码加密
官方站点位于sourceforge:http://sourceforge.net/projects/php-screw/ 官方站点只能下到源码 1.从官方站点下载最新版本: http://sourceforge.net/project/showfiles.php?group_id=52025 以下按我下载的php_screw_1.5为例: php_screw_1.5.tar.gz 2.解压缩:tar zxvf php_screw_1.5.tar.gz 3.通过README.en文件可以看到该版本软件包要求PHP5.x 环境,并要求zlib支持(通过执行脚本<? gzopen(); ?>来检查)。如果你使用的是PHP4.X版本,请下载php_screw_1.3版本 4.进入源码目录 #cd php_screw_1.5 先执行 ...
阅读全文
centos5.x+python2.4.3+mysql-python+django+mod_python的环境搭建方法
python2.4.3是centos5.x自带的,没有升级到2.5,2.6等的,怕路径环境混乱 yum install python-devel mysql-devel mod_python (因为我有其他用途,曾经yum安装过 bison ncurses ncurses-devel zlib zlib-devel openssl gnutls-devel bison-devel  httpd gcc gcc-c++ libxml2-devel libtiff-devel mysql-server php-gd php-mysql  kernel-devel audiofile-devel subversion libogg-devel php-cli php-pear php mysql-devel ) wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py easy_in...
阅读全文
CodeIgniter [库 Library] UTF-8 中文字符转拼音类
UTF-8 中文字符转拼音类,基于CodeIginter 框架实现。本站提供类库源代码下载。本类实现将UTF-8中文字符转换成拼音 或者实现拼音的首字母连锁。 作用:可以实现索引,按照拼音的首字母进行升降序排列 0核心代码: <?php if (! defined ( 'BASEPATH' )) exit ( 'No direct script access allowed' ); /** * Chinese * * Chinese Pinyin class loadingfor developers for PHP 4.3.2 or newer * * @package Libraries * @author Liu Guoqing * @copyright Copyright (c) 2010 ...
阅读全文
php 字母大小写转换函数
PHP strtoupper() 函数 小写转大写字母 实例: <?php echo strtoupper("Hello WORLD!"); ?> 输出:HELLO WORLD! PHP strtolower() 函数 大写转小写字母 实例: <?php echo strtolower("Hello WORLD!"); ?> 输出:hello world!
阅读全文
禁用并删除 WordPress 文章修订记录 瘦身数据库
禁用并删除 WordPress 文章修订记录 瘦身数据库,来个大扫除吧:!! 禁用 WordPress 文章修订历史功能 打开 WordPress 根目录下的 wp-config.php 文件,添加如下行即可: define('WP_POST_REVISIONS', false); 删除 WordPress 已有的文章修订记录 WordPress 文章的修订记录,都被写入了数据库,既然我们不使用他们,那么,清除他们吧!通过以下 SQL 语句可以删除: DELETE FROM ss_postmeta WHERE post_id IN (SELECT id FROM ss_posts WHERE post_type = 'revision'); DELETE FROM ss_term_relationships WHER...
阅读全文
不想听你唠叨×