
php
hyying115
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PHP的unset()函数
PHP变量对内存的开销与释放,unset()是否真的释放内存。转自:PHP的unset()函数的实际效果测试代码如下: 复制PHP内容到剪贴板 PHP代码:for ( $i = 1; $i 100; $i++ ) { $str = str_repeat(01234567, $i); $a = memory_get_usage();转载 2008-11-04 10:45:00 · 440 阅读 · 0 评论 -
php的memcache配置大全
linux下的Memcache安装:1. 下载 memcache的linux版本,注意 memcached 用 libevent 来作事件驱动,所以要先安装有 libevent。2. 安装 pecl::memcache。用 pecl 命令行工具安装:pecl install memcache或直接从源码安装:phpize ./configure make make i转载 2009-03-10 16:59:00 · 2129 阅读 · 0 评论