Cookie
PHP 透明地支持 HTTP cookie。cookie 是一种在远程浏览器端储存数据并以此来跟踪和识别用户的机制。可以用 setcookie() 或 setrawcookie() 函数来设置 cookie。cookie 是 HTTP 标头的一部分,因此 setcookie() 函数必须在其它信息被输出到浏览器前调用,这和对 header() 函数的限制类似。可以使用输出缓冲函数来延迟脚本的输出,直到按需要设置好了所有的 cookie 或者其它 HTTP 标头。
阿神 2016-11-25 11:17:49 3752
APC 函数
•apc_add — 缓存一个变量到数据存储 •apc_bin_dump — Get a binary dump of the given files and user variables •apc_bin_dumpfile — Output a binary dump of cached files and user variables to a file •apc_bin_load — Load a binary dump into the APC file/user cache •apc_bin_loadfile — Load a binary dump from a file into the APC file/user cache •apc_cache_info — Retrieves cached information from APC's data store •apc_cas — 用新值更新旧值 •apc_clear_cache — 清除APC缓存 •apc_compile_file — Stores a file in the bytecode cache, bypassing all filters. •apc_dec — Decrease a stored number •apc_define_constants — Defines a set of constants for retrieval and mass-definition •apc_delete_file — Deletes files from the opcode cache
阿神 2016-11-25 15:42:26 1107