ThinkPHP
u010479588
这个作者很懒,什么都没留下…
展开
-
ThinkPHP Session跨域设置
1、在项目配置文件中添加'SESSION_OPTIONS'=>array( // 'name'=>'cpsid', //修改session.name //'expire'=>3600*3, //Session在服务器端存储3个小时 'domain'=>'.weixinlv.com' )2、在入口文件第一行加 ini_set('ses原创 2013-10-26 16:49:13 · 534 阅读 · 0 评论 -
ThinkPHP去除url中的index.php
例如你的原路径是 http://localhost/test/index.php/index/add那么现在的地址是 http://localhost/test/index/add如何去掉index.php呢?1.httpd.conf配置文件中加载了mod_rewrite.so模块 //在APACHE里面去配置#LoadModule rewrite_module modu转载 2013-11-06 15:03:00 · 436 阅读 · 0 评论