摘要:
转自http://kennyluo.iteye.com/blog/1405083#commentsMemcache函数库是在PECL(PHP Extension Community Library)中,主要作用是搭建大容量的内存数据的临时存放区域,在分布式的时候作用体现的非常明 显,否则不建议使用。Memcache::add -添加一个值,如果已经存在,则返回falseMemcache::addServer -添加一个可供使用的服务器地址Memcache::close -关闭一个Memcache对象Memcache::connect -创建一个Memcache对象memcache_debug 阅读全文
posted @ 2012-02-17 23:31
Souris
阅读(199)
评论(0)
推荐(0)
摘要:
转自:http://dmthlbfjm.iteye.com/blog/1405408内容:<?function GetIP() { //获取IPif ($_SERVER["HTTP_X_FORWARDED_FOR"])$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];else if ($_SERVER["HTTP_CLIENT_IP"])$ip = $_SERVER["HTTP_CLIENT_IP"];else if ($_SERVER["REMOTE_ADDR" 阅读全文
posted @ 2012-02-17 23:08
Souris
阅读(159)
评论(0)
推荐(0)
摘要:
来自:http://phpweby.com/tutorials/php/35PHP is not limited to outputting html. PHP can output images, pdf, javascript files, etc. Browsers determine what type of content is by analyzing the headers sent. In this tutorial I will present you with some examples of how to send headers. To send PHP header 阅读全文
posted @ 2012-02-17 23:03
Souris
阅读(1933)
评论(0)
推荐(0)

浙公网安备 33010602011771号