PHP»º´æʵÏÖ
<?php
class
CacheException
extends
Exception {}
/**
* »º´æ³éÏóÀà
*/
abstract
class
Cache_Abstract {
/**
* ¶Á»º´æ±äÁ¿
*
* @param string $key »º´æϱê
* @return mixed
*/
abstract
public
function
fetch(
$key
);
/**
* »º´æ±äÁ¿
*
* @param string $key »º´æ±äÁ¿Ï±ê
* @param string $value »º´æ±äÁ¿µÄÖµ
* @return bool
*/
abstract
public
function
store(
$key
,
$value
);
/**
* ɾ³ý»º´æ±äÁ¿
*
* @param string $key »º´æϱê
* @return Cache_Abstract
*/
abstract
public
function
delete
(
$key
);
/**
* Çå(ɾ)³ýËùÓлº´æ
*
* @return Ca
Ïà¹ØÎĵµ£º
/**
* »ñµÃµ±Ç°Ê±¼äµÄºÁÃëÊý£¬Óû§¼ì²âÒ³ÃæµÄÖ´ÐÐʱ¼ä
*
* @author cjz
* @date Thu Apr 09 15:05:55 CST 2009
*
* @return float(ºÁÃëÊý)
*/
function myGetMicrotime()
{
list($usec,$sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
......
¸öÈ˱ȼÛÈÏ¿É£¬ÏÖÔÚÊÇÓà netbean 6.8 ¹Ù·½Ìṩ²å¼þºÜÆëÈ«¡£
http://www.ibm.com/developerworks/cn/opensource/os-php-ide/
http://www.pusuo.net/2009-09-19/110884581.html
ÔÙÓбȽϹØ×¢vs 2010µÄÕýʽ°æ£¬ÏëÒªºÍvs.net£¬ÔÀ´ÊÇ°²×°ÔÚvs2008 ÒÔÉÏ°æ±¾µÄ£¬ÏÖÔÚ²»ÖªµÀÊDz»ÊÇ¿ÉÒÔÕûºÏµ½vs 2010
Èç¹û¿ÉÒÔÕûºÏµÄ»°£¬ÄÇôΠ......
<?php
$HotSong="°®ÇéתÒÆ|¾Õ»¨Ì¨|Àë¸è|ÔÂÁÁÖ®ÉÏ|ÒþÐεijá°ò|Öйú»°|Çó·ð|ÇïÌì²»»ØÀ´|·¢ÏÖ°®|ÄѵÀ°®Ò»¸öÈËÓдíÂð|ǧÀïÖ®Íâ|Á¬¿Þ¶¼ÊÇÎҵĴí";
function HotSo($HotSong){
$HotSo='';
echo($HotSong);
$b=explode('|',$HotSong);
foreach ($b as $v) {
$HotSo.="<a href="song.php?song=".urlencode($v)."" mce_ ......
php±íµ¥ÔÚÌá½»Ö®ºóÔÙºóÍË,±íµ¥µÄÄÚÈÝĬÈÏÊDZ»Çå¿ÕµÄ(ʹÓÃsession_startµÄʱºò),
½â¾ö·½·¨ÊÇÔÚsession_start()Ö®ºó,×Ö·ûÊä³ö֮ǰдÉÏ
header(“Cache-control: private”);
ÍøÒ³µÄ»º´æÊÇÓÉHTTPÏûϢͷÖеēCache-control”À´¿ØÖƵģ¬³£¼ûµÄÈ¡ÖµÓÐprivate¡¢no- cache¡¢max-age¡ ......
1¡¢Ç°ÑÔ
·ÖÒ³ÏÔʾÊÇÒ»Öַdz£³£¼ûµÄä¯ÀÀºÍÏÔʾ´óÁ¿Êý¾ÝµÄ·½·¨£¬ÊôÓÚweb±à³ÌÖÐ×î³£´¦ÀíµÄʼþÖ®Ò»¡£¶ÔÓÚweb±à³ÌµÄÀÏÊÖÀ´Ëµ£¬±àдÕâÖÖ´úÂëʵÔÚÊǺͺôÎüÒ»Ñù×Ô
È»£¬µ«ÊǶÔÓÚ³õѧÕßÀ´Ëµ£¬³£³£¶ÔÕâ¸öÎÊÌâÃþ²»×ÅÍ·Ð÷£¬Òò´ËÌصØ׫д´ËÎĶÔÕâ¸öÎÊÌâ½øÐÐÏêϸµÄ½²½â£¬Á¦ÇóÈÿ´ÍêÕâƪÎÄÕµÄÅóÓÑÔÚ¿´ÍêÒÔº ......