php
支持一把thinkphp
Thursday, December 25th, 2008 | Uncategorized | No Comments
01 ThinkPHP快速入门 [ CHM PDF SWF ]
02 ThinkPHP数据操作指南 [ CHM PDF SWF ]
03 ThinkPHP模板指南 [ CHM PDF SWF ]
04 ThinkPHP常见问题集合 [ CHM PDF SWF ]
05 ThinkPHP执行流程 [ CHM PDF SWF ]
06 ThinkPHP配置指南和参考 [ CHM PDF SWF ]
07 ThinkPHP URL设计和SEO支持 [ CHM PDF SWF ]
08 ThinkPHP类库导入和自动加载 [ CHM PDF SWF ]
09 ThinkPHP 错误调试和日志 [ CHM PDF SWF ]
10 ThinkPHP多语言的使用和配置 [ CHM PDF SWF ]
11 ThinkPHP项目自动生成和编译 [ CHM PDF SWF ]
12 ThinkPHP多元化缓存机制 [ CHM PDF SWF ]
13 ThinkPHP 基于角色的权限控制 [ CHM PDF SWF ]
14 ThinkPHP表单令牌设计 [ CHM PDF SWF ]
15 ThinkPHP关联操作 [ CHM PDF SWF ]
16 ThinkPHP视图模型 [ CHM PDF SWF ]
17 ThinkPHP可配置的静态缓存设计 [ CHM PDF SWF ]
18 ThinkPHP编码规范 [ CHM PDF SWF ]
文档打包:[ CHM PDF SWF ]
API手册 [ CHM EXE ] 陆续提供~
[ 升级 ]
1.0.4版本升级到1.5版本注意事项:
1、由于更改了模型对应的数据表名称的自动识别,所以确保项目配置文件增加设置 TABLE_NAME_IDENTIFY=>False ,免除找不到数据表的错误
2、调试模式默认开启了大小写严格检查,因此在Windows下面会严格检查大小写,如果没有注意大小写,可能会发生模块或者模型无法找到的错误,如果不想进行修正,可以设置CHECK_FILE_CASE=>False
更关键的一点是,更新新版之后,一定要记得清空所有的缓存,尤其是Temp和Cache目录。

Codeigniter升级到1.7
Thursday, October 9th, 2008 | 建站攻略 | No Comments
Codeigniter Version 1.7
Release Date: In development
SVN Revision: XXXX
- Libraries
- Added a new Form Validation Class. It simplifies setting rules and field names, supports arrays as field names, allows groups of validation rules to be saved in a config file, and adds some helper functions for use in view files. Please note that the old Validation class is now deprecated. We will leave it in the library folder for some time so that existing applications that use it will not break, but you are encouraged to migrate to the new version.
- Updated the Sessions class so that any custom data being saved gets stored to a database rather than the session cookie (assuming you are using a database to store session data), permitting much more data to be saved.
- Added the ability to store libraries in subdirectories within either the main “libraries” or the local application “libraries” folder. Please see the Loader class for more info.
- Added the ability to assign library objects to your own variable names when you use $this->load->library(). Please see the Loader class for more info.
- Added controller class/method info to Profiler class.
- Improved the “auto typography” feature and moved it out of the helper into its own Typography Class.
- Added max_filename option to set a file name length limit in the File Upload Class.
- Added set_status_header() function to Output class.
- Changed the output of the profiler to use style attribute rather than clear, and added the id “codeigniter_profiler” to the container div.
- Database
- Added removal of non-printing control characters in escape_str() of DB drivers that do not have native PHP escaping mechanisms (mssql, oci8, odbc), to avoid potential SQL errors, and possible sources of SQL injection.
- Helpers
- Added several new “setting” functions to the Form helper that allow POST data to be retrieved and set into forms. These are intended to be used on their own, or with the new Form Validation Class.
- Added current_url() and uri_segments() to URL helper.
- Altered auto_link() in the URL helper so that email addresses with “+” included will be linked.
- Improved accuracy of calculations in Number helper.
- Removed added newlines (”\n”) from most form and html helper functions.
- Tightened up validation in the Date helper function human_to_unix(), and eliminated the POSIX regex.
- Updated Date helper to match the world’s current time zones and offsets.
- Other changes
- Improved performance and accuracy of xss_clean(), including reduction of false positives on image/file tests.
- Added sanitization in xss_clean() for a deprecated HTML tag that could be abused in user input in Internet Explorer.
- Added a few openxml document mime types, and an additional mobile agent to mimes.php and user_agents.php respectively.
- Added PHP Style Guide to docs.
- Added backticks around column names in MySQL when using insert_string and update_string functions, and in where() function.
- Modified Pagination library to only output the “First” link when the link for page one would not be shown.
- Added a file lock check during caching, before trying to write to the file.
- Added driver name variable in each DB driver, based on bug report #4436.
- Modified Cookie key cleaning to unset a few troublesome key names that can be present in certain environments, preventing CI from halting execution.
对比
Thursday, August 28th, 2008 | 好玩的网站, 搜索引擎优化 | No Comments
这里是sphider搜索“奥运”的结果。
这里是google站内搜索“奥运”的结果。
当看第一页的结果,我认为sphider的结果更接近事实的真相,或者说是我需要的信息。
我认为google的收录或者是对页面内容的算法出现了问题。要么是收录不够及时,要么就是对内容的算法过于“复杂”。反而不及最原始的sphider针对页面title,description的检索来得有效。
很多情况下,特别是针对站内搜索,标题搜索其实是最主要的需求。网页的标题基本包含了这个网页的重要信息,因为作为站内搜索,所以不用考虑其他作弊的行为。所以,如果你需要一个以“标题搜索”为主的搜索引擎,那么sphider这款小型的php开源搜索引擎是你不错的选择。