使用TP 3.2框架public function add_post(){ //验证规则 $rule=array( array('name','require','请输入姓名',1),//必须验证name ); $m=M(...
分类:
Web程序 时间:
2014-10-13 15:07:59
阅读次数:
214
TP框架几个重要文件:index.php,ThinkPHP.php,Library/Think/Think.class.php,Library/Think/App.class.php,conversion.php空操作就是当用户访问不存在的方法,在控制器里声明一个_empty方法,这个方法会被自动调...
分类:
其他好文 时间:
2014-10-12 21:58:38
阅读次数:
260
例如你的原路径是 http://localhost/test/index.php/index/add那么现在的地址是 http://localhost/test/index/add如何去掉index.php呢?1、httpd.conf配置文件中加载了mod_rewrite.so模块 //在APACH...
分类:
Web程序 时间:
2014-10-11 22:04:16
阅读次数:
232
1 d_user = D('User');10 $this->user = M('user');11 12 //打款的配置信息13 $this->arr = array(14 'userA' => 1,15 ...
分类:
Web程序 时间:
2014-10-11 01:06:04
阅读次数:
389
ThinkPHP 3.1.2官方手册 第16.2章节 《隐藏index.php》中提到在Ngnix中隐藏index.php实现SEO友好的方法,其中使用了如下的代码location / { if (!-e $request_filename) { rewrite ^(.*)$ /i...
分类:
Web程序 时间:
2014-10-11 00:04:24
阅读次数:
285
server { listen 80; server_name www.funsion.com; root /www/web/funsion; index index.php; # 禁止访问应用目录中的php文件 location ~*...
分类:
Web程序 时间:
2014-10-10 23:41:04
阅读次数:
294
Learn Programming===== LICENSE BEGIN =====63758-1204201000000Ryqh0NCC73lpRm!XVcxFChJ2gTUR2lZtlLXrPLbQ66Gs8MHs51RvF2yagoDlzne08Zm8VXbts1UMKE!EW4v8G====...
分类:
Web程序 时间:
2014-10-09 00:46:47
阅读次数:
234
统计表中字段数据总值:$startInfo = $objOrderInfo->field("COUNT(*) number,SUM(order_amount) account")->where("ctime >='$startPeriod[startTime]' AND ctime find();
分类:
数据库 时间:
2014-10-08 14:26:25
阅读次数:
355