摘要: function initialize(){set_include_path(get_include_path().PATH_SEPARATOR . "core/");set_include_path(get_include_path().PATH_SEPARATOR . "app/");set_i... 阅读全文
posted @ 2014-09-26 17:36 jamesbd 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 一、__autoload这是一个自动加载函数,在PHP5中,当我们实例化一个未定义的类时,就会触发此函数。在index.php中,由于没有包含test.class.php,在实例化printit时,自动调用__autoload函数,参数$class的值即为类名printit,此时test.class... 阅读全文
posted @ 2014-09-26 17:33 jamesbd 阅读(214) 评论(0) 推荐(0) 编辑
摘要: FastDFS上传/下载过程:首先客户端 client 发起对 FastDFS 的文件传输动作,是通过连接到某一台 Tracker Server 的指定端口来实现的,Tracker Server 根据目前已掌握的信息,来决定选择哪一台 Storage Server ,然后将这个Storage Ser... 阅读全文
posted @ 2014-09-26 15:25 jamesbd 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 编译安装wget http://pecl.php.net/get/xhprof-0.9.2.tgztar zxf xhprof-0.9.2.tgzcd xhprof-0.9.2/extension/sudo phpize./configure --with-php-config=/usr/local... 阅读全文
posted @ 2014-09-26 15:19 jamesbd 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.使用env命令显示所有的环境变量 $ env HOSTNAME=redbooks.safe.org PVM_RSH=/usr/bin/rsh Shell=/bin/bash TERM=xterm HISTSIZE=1000 ...2.使用set命令显示所有本地定义的Shell变量 ... 阅读全文
posted @ 2014-09-26 14:07 jamesbd 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 内存和swap:(也可以是:cat /proc/meminfo)[root@192.168.1.100~]$ free -t total used free shared buffers cachedMem: 12295296 12206756 88540 0 1303848 4621700-/+ ... 阅读全文
posted @ 2014-09-26 11:24 jamesbd 阅读(375) 评论(0) 推荐(0) 编辑