Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

PHPÌáÈ¡8684¹«½»Êý¾Ý

×î½üÒ»ÄêÀ´Ò»Ö±ÔÚʹÓÃfedora£¬·¢ÏÖlinuxÕæÊÇÌ«ÊʺÏÎÒÁË£¬Ï²»¶Ð´³ÌÐò£¬×Ô¼ºÏ¹µ¹ÌÚ£¬°¦windowsÎóÎÒ´óºÃÄ껪……
ÓÃPHPдÁËÒ»¶Î³ÌÐòÓÃÓÚÌáÈ¡ÍøÒ³ÖеÄÊý¾Ý£¬ÏàÐÅËÑË÷ÒýÇæÒ²ÊDz¶àµÄÏë·¨£¬Ö»²»¹ýËûÃÇÊý¾Ý¶à£¬Ëã·¨ºÃЩ£¬ºÇºÇ
[php]
<?php
/*
*´ËÎļþµÄÄ¿±êÊÇ×Ô¶¯ËѼ¯´æ´¢8684ÉϵÄÉîÛÚÊй«½»Êý¾Ý
*
*ÓÉ ......

PHP 5.3.0 Á¬½Ómysqli³ö´íµÄ½â¾ö

½üÈÕÒò¹«Ë¾¿ª·¢ÐèÒª,ÔÚ±¾»úWin7ϼÜÉèÁËApache+MySql+PHP
ËùʹÓÃPHP°æ±¾:PHP5.3.0, Ö®ºó·¢ÏÖÎÞ·¨Á¬½ÓmysqlÊý¾Ý¿â,¾ù±¨³¬Ê±´íÎó:
PHP Warning: mysqli::mysqli(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in xxx.php on line x
PHP Warni ......

9.3 ͨ¹ýPHP²Ù×÷AccessÊý¾Ý¿â

9.3  ͨ¹ýPHP²Ù×÷AccessÊý¾Ý¿â
9.3.1  Á¬½ÓAccessÊý¾Ý¿â
ÔÚPHPÖÐÁ¬½ÓAccessÓÐÈçÏÂ3ÖÖ·½Ê½¡£
£¨1£©´´½¨ÏµÍ³Êý¾ÝÔ´£¬ÓÃPHPÌṩµÄODBCº¯Êý
¼´¿É¡£
£¨2£©Í¬Ñù¿ÉÒÔʹÓÃPHPµÄODBCº¯Êý£¬µ«²»´´½¨
Êý¾ÝÔ´¡£¿ª·ÅÊý¾Ý¿âÁ¬½Ó£¨Open DateBase
Conection£¬ODBC£©ÊÇWindows Open
Server£¨¿ª·Å·þÎñ£©API£¨WOSA£©²úÆ·Ö®Ò ......

¡¾×ª¡¿É÷ÓÃPHP$_REQUESTÊý×é

      ÎÒƽʱ×ÜÊÇϲ»¶ÓÃ$_REQUESTÕâ¸öÊý×飬²»ÊÇÒòΪ±ðµÄ£¬¼òµ¥£¬¶øÇÒÏëÓÃGETʱºò¾ÍÓÃGETÖ±½Ó²âÊÔ¼´¿É¡£»¹¿ÉÒÔ°ÑURL´ò³öÀ´£¬ºÜÊÇ·½±ã¡£´Ó¶øºÜÉÙÓÃ$_GETºÍ$_POST³¬È«¾Ö±äÁ¿¡£
      ²»¹ý£¬´Ó½ñÒÔºóÎһᾡÁ¿²»ÔÙʹÓÃ$_REQUESTÕâ¸öÊý×飬ÒòΪÒÔÇ°¶ÔÕâ¸öÊý×éÓÐЩһ֪°ë½â£¬ ......

ʵÏÖphp¹¤³§Ä£Ê½µÄ¼¸¸ö¹Ø¼üº¯Êý

ÃæÏò¶ÔÏó±à³ÌµÄ·½·¨ÖУ¬ÎªÁËʵÏÖ¶ÔÏó¼äµÄËÉñîºÏ£¬ÆäÖÐÒ»ÖÖ¼òµ¥µÄÔ­Ôò¾ÍÊǽ«Ó¦ÓòßÂÔÓ빦ÄÜʵÏÖ·ÖÀë¡£³£³£Óõ½µÄÉè¼ÆģʽÓÐfactory¡¢facadeµÈ£¬¶øµ±ÖеĺËÐıà³Ì¼¼Êõ¾ÍÊÇcallback¼¼Êõ¡£
Ëùνcallback¼¼Êõ£¬¼òµ¥µÄ˵¾ÍÊǽ«º¯ÊýµÄ×÷Ϊһ¸ö²ÎÊý´«µÝ¸øÁíÍâÒ»¸öº¯Êý£¬²¢±»¸Ãº¯ÊýËùµ÷Óá£
phpÏ£¬ÊµÏÖ¹¤³§Ä£Ê½µÄÓÐһϡ£¼¸¸ö¹Ø¼ü ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ