锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久久久久影院,久久久无码一区二区三区,久久精品无码一区二区无码http://www.shnenglu.com/qywyh/category/333.html璞?>blogzh-cnTue, 18 May 2010 22:18:09 GMTTue, 18 May 2010 22:18:09 GMT60- php copy on writehttp://www.shnenglu.com/qywyh/archive/2010/05/18/115734.html璞?/dc:creator>璞?/author>Tue, 18 May 2010 14:45:00 GMThttp://www.shnenglu.com/qywyh/archive/2010/05/18/115734.htmlhttp://www.shnenglu.com/qywyh/comments/115734.htmlhttp://www.shnenglu.com/qywyh/archive/2010/05/18/115734.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/115734.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/115734.html
2.濡傛灉鏄紩鐢ㄨ祴鍊鹼紝鐢ㄤ簬澶嶅埗鐨勫彉閲忔寚鍚戠殑zval鐨刬s_ref=0錛屽垯copy on write錛屽師zval refcount--錛屾柊鍙橀噺鍜屽紩鐢ㄥ彉閲忓悓鏃舵寚鍚戞柊鐨剒val錛宨s_ref=1,refcount=2; 鑻val鐨刬s_ref=1錛屽垯鐩存帴鎸囧悜,refcount++;

]]> - php鏂囦歡涓婁紶綾籿1.0http://www.shnenglu.com/qywyh/archive/2008/04/12/46901.html璞?/dc:creator>璞?/author>Sat, 12 Apr 2008 03:47:00 GMThttp://www.shnenglu.com/qywyh/archive/2008/04/12/46901.htmlhttp://www.shnenglu.com/qywyh/comments/46901.htmlhttp://www.shnenglu.com/qywyh/archive/2008/04/12/46901.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/46901.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/46901.html闃呰鍏ㄦ枃

]]> - 鑾峰彇rss鐨勭被http://www.shnenglu.com/qywyh/archive/2007/02/03/18286.html璞?/dc:creator>璞?/author>Fri, 02 Feb 2007 17:32:00 GMThttp://www.shnenglu.com/qywyh/archive/2007/02/03/18286.htmlhttp://www.shnenglu.com/qywyh/comments/18286.htmlhttp://www.shnenglu.com/qywyh/archive/2007/02/03/18286.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/18286.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/18286.html
<?
/*************
|聽+-------------------------------------------------
|聽Id:聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
|聽+-------------------------------------------------
|聽Copyright聽(c)聽
|聽Author:Howie
|聽Email:聽qywyh_scut@163.com
|聽+-------------------------------------------------
|聽Create聽Date:聽2007-2-3
|聽Modify聽Date:聽
|聽Note:聽聽
|聽demo:
|聽聽聽$objRSS聽=聽new聽loadRSS('http://news.163.com/special/00011K6L/rss_gn.xml',聽10,聽'cache/test.xml');
|聽聽聽echo聽$objRSS->getRSS();
|
|聽+-------------------------------------------------
***************/
class聽loadRSS聽{
聽聽聽聽
聽聽聽聽//RSS聽url閾炬帴
聽聽聽聽var聽$_url聽=聽'';

聽聽聽聽//RSS聽緙撳瓨鐩綍
聽聽聽聽var聽$_cacheDir聽=聽'';

聽聽聽聽//緙撳瓨鏃墮棿
聽聽聽聽var聽$_cacheTime聽=聽'';

聽聽聽聽//鏄惁浠庣紦瀛樿鍙?/span>
聽聽聽聽var聽$_loadFromCache聽=聽true;

聽聽聽聽//淇濆瓨rss瀛楃涓?/span>
聽聽聽聽var聽$_str聽=聽'';

聽聽聽聽function聽loadRSS聽($url,聽$cacheTime=0,聽$cacheDir=''){
聽聽聽聽聽聽聽聽$this->_url聽=聽$url;
聽聽聽聽聽聽聽聽if聽($cacheDir聽==聽''聽||聽$cacheTime聽==聽0)聽{
聽聽聽聽聽聽聽聽聽聽聽聽$this->_loadFromCache聽=聽false;
聽聽聽聽聽聽聽聽}聽else聽{
聽聽聽聽聽聽聽聽聽聽聽聽$this->_cacheTime聽=聽$cacheTime;
聽聽聽聽聽聽聽聽聽聽聽聽$this->_cacheDir聽=聽$cacheDir;
聽聽聽聽聽聽聽聽}
聽聽聽聽}

聽聽聽聽function聽getRSS聽()聽{
聽聽聽聽聽聽聽聽if聽(!$this->_loadFromCache)聽{
聽聽聽聽聽聽聽聽聽聽聽聽$fp聽=聽fopen($this->_url,聽'r');
聽聽聽聽聽聽聽聽聽聽聽聽while聽($tmp聽=聽fgets($fp,聽4096))聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽$this->_str聽.=聽$tmp;
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽fclose($fp);
聽聽聽聽聽聽聽聽聽聽聽聽//echo聽$this->_str;
聽聽聽聽聽聽聽聽}聽else聽{
聽聽聽聽聽聽聽聽聽聽聽聽$fileModifyTime聽=聽@filemtime($this->_cacheDir);
聽聽聽聽聽聽聽聽聽聽聽聽$nowTime聽=聽time();
聽聽聽聽聽聽聽聽聽聽聽聽//淇敼緙撳瓨鏂囦歡
聽聽聽聽聽聽聽聽聽聽聽聽if聽(!$fileModifyTime聽||聽$nowTime-$fileModifyTime聽>=聽$this->_cacheTime)聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽$fp聽=聽fopen($this->_url,聽'r');
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽$fp2聽=聽fopen($this->_cacheDir,聽'w');
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽while聽($tmp聽=聽fgets($fp,聽4096))聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽fwrite($fp2,聽$tmp);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽$this->_str聽.=聽$tmp;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽fclose($fp);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽fclose($fp2);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽return聽$this->_str;
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽$fp聽=聽fopen($this->_cacheDir,聽'r');
聽聽聽聽聽聽聽聽聽聽聽聽while聽($tmp聽=聽fgets($fp,聽4096))聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽$this->_str聽.=聽$tmp;
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽fclose($fp);
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽return聽$this->_str;
聽聽聽聽}

}
?>
]]> - 濂介珮鍏?緗戠珯榪涘害60%浜?http://www.shnenglu.com/qywyh/archive/2006/01/23/2981.html璞?/dc:creator>璞?/author>Sun, 22 Jan 2006 17:21:00 GMThttp://www.shnenglu.com/qywyh/archive/2006/01/23/2981.htmlhttp://www.shnenglu.com/qywyh/comments/2981.htmlhttp://www.shnenglu.com/qywyh/archive/2006/01/23/2981.html#Feedback1http://www.shnenglu.com/qywyh/comments/commentRss/2981.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/2981.html緇堜簬涔熶綋浼氬埌
榪炵畫鍑犲ぉ宸ヤ綔10澶氬皬鏃剁殑婊嬪懗....
涓嶈繃涔熷煎緱,娌″悆榪囪嫤,鏄簲璇ュ悆鐐圭殑....

]]>- 鏈変簺涓滆タ鐪嬭搗鏉ョ畝鍗?鍏跺疄鍋氫笂鍘誨茍涓嶅鏄?/title>http://www.shnenglu.com/qywyh/archive/2006/01/21/2949.html璞?/dc:creator>璞?/author>Fri, 20 Jan 2006 16:03:00 GMThttp://www.shnenglu.com/qywyh/archive/2006/01/21/2949.htmlhttp://www.shnenglu.com/qywyh/comments/2949.htmlhttp://www.shnenglu.com/qywyh/archive/2006/01/21/2949.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/2949.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/2949.html鑺變簡涓澶╃殑鏃墮棿,緇堜簬瀹屾垚綆$悊鍦板尯鐨勫姛鑳?
鏈互涓鴻繖涓姛鑳藉緢綆鍗?浣嗗仛璧鋒潵,寰堝鐨勭粏鑺傝娉ㄦ剰,榪欐牱鍫嗙Н璧鋒潵,灝辨槸鏃墮棿浜?
琛屼笟綆$悊浠婂ぉ鏄仛涓嶅畬鐨勪簡,鏄庡ぉ鍐嶅鏂楀惂.
Ep:鍋氬姛鑳界殑鏃跺?鏄簲璇ユ妸鍔熻兘鎯蟲竻妤氬啀鍋氱殑.
]]> - 鑰冨畬璇曚簡,閲嶆柊寮濮嬮」鐩?/title>http://www.shnenglu.com/qywyh/archive/2006/01/20/2919.html璞?/dc:creator>璞?/author>Thu, 19 Jan 2006 18:26:00 GMThttp://www.shnenglu.com/qywyh/archive/2006/01/20/2919.htmlhttp://www.shnenglu.com/qywyh/comments/2919.htmlhttp://www.shnenglu.com/qywyh/archive/2006/01/20/2919.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/2919.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/2919.html綆$悊鐢ㄦ埛鐨勫悗鍙板樊涓嶅瀹屾垚浜?鏄庡ぉ鐨勭洰鏍囨槸,鍦板尯綆$悊鍜岃涓氱鐞?gt;
鏃墮棿涓嶅浜?瑕佸姞娌?.
]]> - 1鍙蜂簡....榪涘害榪樺彲浠?鍙槸灝辮鍑嗗鑰冭瘯,瑕佸仠姝㈤」鐩繘搴︿簡...http://www.shnenglu.com/qywyh/archive/2006/01/03/2364.html璞?/dc:creator>璞?/author>Mon, 02 Jan 2006 17:10:00 GMThttp://www.shnenglu.com/qywyh/archive/2006/01/03/2364.htmlhttp://www.shnenglu.com/qywyh/comments/2364.htmlhttp://www.shnenglu.com/qywyh/archive/2006/01/03/2364.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/2364.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/2364.html1.緗戠珯,php鐨勫ぇ姒傛鏋?config絳夊叕鍏辨枃浠剁殑璁劇疆,php欏甸潰鐨勫熀鏈灦鏋?BR>2.鐢ㄦ埛娉ㄥ唽,鐧婚檰,淇℃伅鐨勪慨鏀?BR>
浠婂ぉ瀛︿細浜?
1.楠岃瘉鐮?BR>2.cookies鍜宻ession
鎰熻涓婁粖澶╄繕綆楀彲浠ョ殑,濡傛灉涓嶆槸閭d釜cookies嫻垂鎴戜簡3涓皬鏃?鎴戞兂榪涘害搴旇榪樹細蹇偣.
緇忛獙涓庡績寰?
鍦╯etcookies()鏃?鍓嶉潰涓嶈兘鏈変換浣曠殑杈撳嚭璇彞;鍖呮嫭include鏂囦歡鏈浣庝笅鐨勭┖琛?浠婂ぉ灝辨槸琚畠嫻垂浜嗘垜3灝忔椂:()
]]> - 浠婂ぉ鍒頒笁鐐?宸茬粡鏄?006浜?鍛靛懙http://www.shnenglu.com/qywyh/archive/2006/01/01/2337.html璞?/dc:creator>璞?/author>Sat, 31 Dec 2005 19:05:00 GMThttp://www.shnenglu.com/qywyh/archive/2006/01/01/2337.htmlhttp://www.shnenglu.com/qywyh/comments/2337.htmlhttp://www.shnenglu.com/qywyh/archive/2006/01/01/2337.html#Feedback1http://www.shnenglu.com/qywyh/comments/commentRss/2337.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/2337.html鍏堟妸鏈鍩烘湰鐨勭敓鎴愰潤鎬佹枃浠剁殑綾誨啓浜?璇ョ被鑳芥牴鎹椂闂?鐢卞鎴風鐢熸垚.!
璇峰ぇ瀹跺府蹇欐寚鍑洪敊璇?
濂藉洶,鍏堢潯浜哵_^
/*************
| +-------------------------------------------------
| Id:
| +-------------------------------------------------
| Copyright (c)
| Author: qywyh_scut@163.com
| +-------------------------------------------------
| Create Date: 2006-1-1 2:58
| Modify Date:
| Note: Using Method:
$t=new myStaticFile($filename,10);
$t->StaticFile($content);
|
|
| +-------------------------------------------------
***************/
class myStaticFile
{
var $filename;
var $Statictime;
function myStaticFile($f,$p,$s=15)
{
$this->filename=$p.$f.".htm";
$this->Statictime=$s;
if(file_exists($this->filename))
{
$fOldTime=filemtime($this->filename);
if($fOldTime>time()-$this->Statictime)
{
$this->go_url();
exit;
}
}
}

function go_url($second=0)
{

echo "<META http-equiv=Pragma content=no-cache><META http-equiv=Cache-Control content=no-cache><META http-equiv=Expires content=0><META HTTP-EQUIV=REFRESH CONTENT=$second;URL=$this->filename>";
exit;
}

function wfile($content,$mode='w')
{
if(file_exists($this->filename))
{
chmod($this->filename,0777);
}
$fp = fopen($this->filename, $mode);
if (!$fp) return false;
fwrite($fp,$content);
chmod($this->filename,0755);
fclose($fp);
return true;
}

function StaticFile($content)
{
if($this->Statictime==0)
{
echo $content;
exit;
}
$f=$this->wfile($content);
if(!$f)
{
echo "鐢熸垚闈欐佹枃浠跺け璐?/SPAN>";
return false;
}
$this->go_url();
exit;
}
}
]]> - jumgoo鐨勫箍鍛婄綉绔欓」鐩凡寮濮?鍦ㄨ繖綰綍榪涘害鍜屽績寰?/title>http://www.shnenglu.com/qywyh/archive/2006/01/01/2335.html璞?/dc:creator>璞?/author>Sat, 31 Dec 2005 16:06:00 GMThttp://www.shnenglu.com/qywyh/archive/2006/01/01/2335.htmlhttp://www.shnenglu.com/qywyh/comments/2335.htmlhttp://www.shnenglu.com/qywyh/archive/2006/01/01/2335.html#Feedback0http://www.shnenglu.com/qywyh/comments/commentRss/2335.htmlhttp://www.shnenglu.com/qywyh/services/trackbacks/2335.html浠婂ぉ宸茬粡鎶婄綉绔欑殑甯冨眬緇撴瀯鐨刪tml浜や簡涓婂幓,鏍囧織鐫鑷繁鐨勭涓涓嫭绔嬬殑欏圭洰姝e紡灞曞紑~~~~~
浠ヤ笅鏄帴涓嬫潵闇瑕佸畬鎴愮殑鍔熻兘:
1. 鐢ㄦ埛鍔熻兘; (娉ㄥ唽,鐧婚檰,鍚庡彴綆$悊)
2. 緗戠珯鍔熻兘; (鍙戝竷淇℃伅,緗戠珯棣栭〉,鏌ョ湅鍦板尯,鏌ョ湅琛屼笟,鎼滅儲, 鍚庡彴淇℃伅綆$悊) ;
3. 欏甸潰鏁村悎,鐣欒█鐗?嫻忚鐢ㄦ埛鐣欒█; 4. 鍏跺畠緹庡伐綾誨瀷鐨勯〉闈㈡暣鍚?
鍓嶉潰涓や釜闃舵鐢變簬宸ヤ綔閲忎富瑕侀泦涓湪榪欓噷,鑺辮垂鏃墮棿姣旇緝澶?鎵浠ュ笇鏈涘湪騫村墠瀹屾垚,
鍚庝袱涓樁孌典富瑕佹槸鍏跺畠欏甸潰鍙婂姛鑳?鍜岀編宸ョ殑涓浜涙暣鍚?鏃墮棿鍙互姣旇緝瀹芥澗.
騫朵笖鍦ㄥ悗闈袱涓樁孌典慨鏀逛竴涓嬬敤鎴峰姛鑳藉強緗戠珯鍔熻兘;

]]>
久久综合香蕉国产蜜臀AV|
久久久久久精品免费看SSS|
一本大道久久a久久精品综合|
久久国产色AV免费看|
99久久国产综合精品成人影院|
久久99亚洲综合精品首页|
中文字幕乱码人妻无码久久|
精品久久香蕉国产线看观看亚洲|
精品免费久久久久国产一区|
亚洲乱码中文字幕久久孕妇黑人|
亚洲国产天堂久久综合网站|
国产精品久久久久久久久软件|
精品久久人妻av中文字幕|
青青青青久久精品国产h久久精品五福影院1421|
久久国产热这里只有精品|
精品国产一区二区三区久久久狼|
久久中文字幕视频、最近更新|
www.久久99|
精品国产VA久久久久久久冰|
日产精品久久久久久久|
伊人久久精品线影院|
久久精品夜夜夜夜夜久久|
久久久久99这里有精品10|
国产精品丝袜久久久久久不卡|
久久国产精品无码一区二区三区|
久久国内免费视频|
久久伊人色|
久久伊人中文无码|
久久久久国产精品麻豆AR影院
|
伊人伊成久久人综合网777|
一级做a爰片久久毛片16|
久久久久亚洲av无码专区导航
|
久久人人爽人人人人爽AV|
国内精品久久国产大陆|
亚洲精品无码久久一线|
国产精品久久新婚兰兰|
久久男人中文字幕资源站|
欧美国产精品久久高清|
国产精品久久久99|
精品久久久久久综合日本|
日本精品久久久久中文字幕|