... 在前台的config.php配置文件中: 1.首先开启路由 'URL_ROUTER_ON' => true, ...
... /$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule> 如果不想跳转而是 ...
... ;")->setInc('hits'); } 在php代码里面加入统计代码时,如果静态页面缓存php代码就会不执行,用ajax ...
... ;'); header("Content-Transfer-Encoding:binary"); $objWriter->save('php://output'); 设置excel的属性: 创建人 $objPHPExcel->getProperties()->setCreator ...
... 文件 write_static_cache($cache_name, $caches) // 写结果缓存文件 /* * 公用函数库 */ lib_common.php ( 公用函数库) db_create_in($item_list, $field_name = '') // 创建像这样的 ...
... includes 公用的类库和函数 languages 语言目录 ---zh_cn ---common.php公用语言文件 themes 网站模板文件夹 1.在 themes 目录中 ...
... ;THINK_PATH',realpath('../Think').'/'); require THINK_PATH.'ThinkPHP.php'; realpath() 函数是用来返回绝对路径的,定义绝对路径 ...
... /application/view/index目录下有这样几个模板文件 header.php main.php footer.php 2.在index控制器的home方法中 public function home ...
... /shop __APP__ 指定到应用 /web/shop/index.php __MODULE__ 指定到模型 /web/shop/index.php/home __CONTROLLER__ (__或者__URL__ 兼容考虑) 指定到 ...
... ajax({ url:'demo.php', type:'get', data:'name=Stephen&id=1&# ...
... DEFLATE text/html text/css text/plain text/xml application/x-httpd-php application/x-javascript </IfModule>
... ('BUILD_CONTROLLER_LIST','Index,User,Menu'); require './ThinkPHP/ThinkPHP.php'; 使用后删除即可,厚重可能无法访问其他模块。
... ;/script> </html> 2 .复制下面代码到photo.php文件。 <?php //模拟数据库取数据 $arr = array(); //目录操作读取出所有 ...
... > <body> <script> <!-- window.open ('demo.php', 'newwindow', 'height=500, width=800, top=0, left ...
... : set_include_path('./hehe/');//在这设置了路径 include 'inc.php'; $suck_my_dick = 'f*ck my self..'; file_put_contents('ymd.txt ...