07 2008 档案

摘要:取得domobj的实际高度domobj.clientHeight||domobj.documentElement.clientHeight;使用socket下载一个url,默认自动尝试三次.private function getSContent($url,$retry=0,$maxRetry=3){$url_param = parse_url($url);if($retry>=$maxRetry){echo "Download $url failed!";return false;}else{$fp = fsockopen($url_param['host& 阅读全文
posted @ 2008-07-31 10:49 MultiThread-PHP 阅读(165) 评论(0) 推荐(0)
摘要:/** 使用方法,清除对'/zhidao/?page=1&id=2'的缓存。Zend_Loader::loadClass('Custom_Cacheid');$cacheId=Custom_Cacheid::makeId('/zhidao/?page=1&id=2',Config::$cacheOptions);$GLOBALS['cache']->remove($cacheId);*/class Custom_Cacheid{ static $Get=NULL;static $Post=NULL;stati 阅读全文
posted @ 2008-07-02 11:43 MultiThread-PHP 阅读(177) 评论(0) 推荐(0)