现在在php4版本后的功能已经很强大了,不需要使用php lib了。
解决方案 »
- php在浏览器显示的中文是问号怎么办?
- 急求下载代码
- xml小问题求救!
- 【急】如何实现 php 服务器端 1个对象(单例模式)的问题!
- Mysql插入英镑符号应该采用什么字符集啊?
- php分页问题 系统提示未定义变量Undefined variable: php_self
- thinkphp留言板如何写?
- 网页残留上一次的内容,直到刷新后才变为正确的。
- 快来看看,这个主页空间不支持文件读写,怎么办? Warning: fopen("./data/user.dat", "w") - Permission denied in /usr/vhome/e/k/i/XX
- 为什么我在提交表单的时候会出现/php/php.exe/,怎么解决?
- PHP中有没有类似ASP中的Session.Timeout,以实现当登录超时时,提示相应信息?
- 写了一个留言本,但是出错了,这个错误!向斑竹求救!!!
推荐只有在使用odbc或者mssql等大型数据库的时候用,php对mysql的支持已经很强大了,没必要用phplib
其它的我觉得暂时没什么用了……
比如其中有需要替换的{test1}{test2}的语法是!
include("template.inc.php");
$template = new Template();
$template->set_file("handle1", "test.ihtml");
$vars =array(
"test1"=>$test1,
"test2"=>$test2
);
$template->set_var($vars);
$template->parse("output", "handle1");
$template->p("output");这样就能输出结果了!并且{test1}和{test2}也已经被$test1和$test2替代了……