摘要:1。解压后将libs目录放到php的include_path所在地方。或者在程序中设置常量路径2。每个应用程序建立templates,templates_c,configs目录。或者用smarty来指定相关目录,注意templates_c必须让web服务器用户具有写的权限。最好chmod 700 templates_c,如果使用了Smarty内建的cache,可以建立一个cache目录,权限设置同...
阅读全文
文章分类 - PHP相关
包括Smarty等
摘要:Welcome back! In my last column I introduced you to basic PHP references and how they are used. This week, I'll take that basic introduction a step further and implement some of the more advanced uses...
阅读全文
摘要:The track_vars and register_globals configuration settings influence how the session variables get stored and restored 如果激活,则环境变量,GET,POST,Cookie 和 Server 变量都能够分别在全局关联数组中找到:$_ENV,$_GET,$_POST,$_C...
阅读全文
摘要:Smarty是PHP的模板引擎之一。简单的讲就是在你的php程序里你把要用到的变量分配到模板中,然后将他们用于页面输出. Smarty和PHPA(或Zend Cache)的不同:PHPA只是在内存中缓存了PHP脚本编译过的bytecode。这加速了服务器的响应时间和节省了编译步骤,而Smarty创建的PHP script,PHPA也能很好的做Cache,现在Smarty内置的cache...
阅读全文