Tag Archives: php

Jemplate 的简单介绍

如果你还在用 php 写 web,那么你 out 了,呵呵。现在流行的是 rest + js。当然,rest 层可能还是 php 写的,不过还有用 perl 写的 openresty 1.0 和完全用 c 写的 openresty 2.0。openresty 是个很不错的东西,本来想细说一下,发现不知道怎么说好。去 cpan 上面搜吧。openresty 2.0 是基于 nginx 的,agentzh 在他上面加了好多的模块,让 nginx 直接和数据库通信,都不用 php 了。前端完全用 js 来搞定,以后应该都是 js 工程师了。 smarty 写 php 的人应该都知道吧,Jemplate 是很类似的一个东西,是方便你写 js 的一个工具。我这写了一个非常简单的例子。 下面这个是 Jemplate 的一个模板,保存为 test.tt。 <div>[% test %]</div> <p> [% FILTER html [...]

tmp下面有好多的sess_文件

之前以为是有个did_you_path_math插件的问题,可是停止这个插件后,发现还是会有这些文件出来。 -rw——- 1 nobody 4294967295 0 Jun 20 16:01 sess_l12chvh9bjik2a7ms152ggnu36 -rw——- 1 nobody 4294967295 0 Jun 20 16:00 sess_r6gml3pbcfaribnctamiq9rk53 -rw——- 1 nobody 4294967295 0 Jun 20 16:00 sess_lnvhsb928701qq1kgf1fiiuem5 -rw——- 1 nobody 4294967295 0 Jun 20 16:00 sess_bhlk360m7jqh1c8khku000gte4 -rw——- 1 nobody 4294967295 0 Jun 20 15:58 sess_uuflltlj4c81pk116qtegr15q2 -rw——- 1 nobody 4294967295 0 Jun 20 15:57 sess_6fbdvd4fmq49pp9kvi0g68ihr5 [...]