最好访问都针对根目录。否则很乱。
解决方案 »
- PHP 把word文档内容导入mysql数据库
- 关于跨域控制页面的问题!求高手一解! 新手给分不高!
- 求一段PHP全文搜索代码
- php怎样实现对gif图像的处理
- 重新编译了php_memcache.dll 散分
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\php\study\select.php on line 14
- 如何去除字符串最后一个<br/>
- 疑问
- 请教phped怎么在每个文档开头自动加上版本等信息
- 请问这几行代码是什么意思
- 头脑
- 一台服务器装了SQL 2000和 MY SQL 会有冲突么???
class.smarttemplate.php<?php /**
* 为smarttemplate设置3个真实路径:编译临时文件目录,缓存目录,模板目录
* /home/ka1ijikijq/wwwroot/smarttemplate/tmp/
* /home/ka1ijikijq/wwwroot/smarttemplate/tmp/
* /home/ka1ijikijq/wwwroot/smarttemplate
*
* @author aiiiq
* @today 2:19 05-8-28
*/ $_CONFIG = array(
smarttemplate_compiled => dirname(__FILE__) . "/tmp/",
smarttemplate_cache => dirname(__FILE__) . "/tmp/",
cache_lifetime => 600,
template_dir => dirname(__FILE__) . "/",
);
/**
* SmartTemplate Class
*
* 'Compiles' HTML-Templates to PHP Code
Hello_World.php<?php require_once "/home/ka1ijikijq/wwwroot/smarttemplate/class.smarttemplate.php";
// 同样需要绝对路径 $page = new SmartTemplate("Hello_World.html");
$page->assign('TITLE', 'Hello World!');
$page->output();?>