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

PHPÖеÄħÊõ·½·¨

PHPÖÐÓÐÏÂÁгÆÖ®ÎªÄ§Êõ·½·¨(magic method)µÄº¯Êý:__construct, __destruct ,
__call, __callStatic,__get, __set, __isset, __unset , __sleep, __wakeup,
__toString, __set_state, __clone and __autoload,±¾ÎÄʹÓÃ__callΪʵÏÖÒ»¸öÉí·ÝÑéÖ¤µÄ¼òµ¥ÊµÀý£¬´úÂëÈçÏ£º ´úÂë<?php
    interface Accountable
    {
        const ERR_MSG = "error";
        public function isLoggedIn();
        public function getAccount($user = '');
    }
    abstract class Authentication implements Accountable
    {
        private $account = null;
        public function getAccount($user = '')
        {
            if ($this->account != null) {
                return $this->account;
            } else {
                return ERR_MSG;
            }
        }
        public function isLoggedIn()
        {
            return ($this->account != null);
        }
    }
    class 


Ïà¹ØÎĵµ£º

LinuxÖа²×°PHP 5½Ì³Ì

µÚÒ»²½ °²×°MySQL
[root@localhost usr]# groupadd mysql
[root@localhost usr]# useradd -g mysql mysql
[root@localhost usr]# cd /usr/local
[root@localhost local]# tar -zxvf mysql-5.0.51.tar.gz
[root@localhost local]# cd mysql-5.0.51
[root@localhost mysql-5.0.51# ./configure --prefix=/usr/local/my ......

PHPº¯Êý(2)

in_array(value,array,type)        //¼ì²éÒ»¸öÖµÊÇ·ñÔÚÊý×éÖÐ,type¿ÉÑ¡,ÉèÖÃΪtrue¼ì²éÀàÐÍÊÇ·ñÏàͬ,·Ö´óСд
Àý:
$os = array("Mac", "NT", "Irix", "Linux");
if (in_array("Irix", $os)) {
echo "Got Irix"; ......

PHP session ´íÎó¼°mysql close ´íÎó´¦Àí

ÔÚа²×°ºÃµÄmysql £¬apahce£¬php µÄʱºò£¬Èç¹ûÔÚ´úÂëÖÐʹÓÃÁËsessions_start() µÄʱºò»á³öÏÖÀàËÆÒÔϵĴíÎó£º
Warning: session_start() [function.session-start]: Cannot send session cooki µÈµÄ´íÎó¡£
Çë°²×°ÈçϵÄ˼·ȥÐÞÕý£º
1.ÔÚphp.ini ÖÐÅäÖÃ session.savepath='/tmp'
2.¿ªÆôsession.auto_start=1
3.°Ñ¸ü¸Ä ......

PHPÖвå¼þ»úÖÆµÄÒ»ÖÖʵÏÖ·½°¸

http://www.phpip.com/program/php/A62010901P/25588.html
ÕâÆªÎÄÕµijö·¢µãÊÇÎÒ¶Ô²å¼þ»úÖÆµÄÀí½â£¬¼°ÆäÔÚPHPÖеÄʵÏÖ¡£´Ë·½°¸½öÊDzå¼þ»úÖÆÔÚPHPÖеÄʵÏÖ·½°¸Ö®Ò»£¬Ð´ÏÂÀ´ºÍ´ó¼Ò·ÖÏí£¬»¶Ó­´ó¼ÒÒ»ÆðÌÖÂÛ¡£
²å¼þ£¬Ò༴Plug-in£¬ÊÇÖ¸Ò»ÀàÌØ¶¨µÄ¹¦ÄÜÄ£¿é£¨Í¨³£ÓɵÚÈý·½¿ª·¢ÕßʵÏÖ£©£¬ËüµÄÌØµãÊÇ£ºµ±ÄãÐèÒªËüµÄʱºò¼¤»îËü£¬²»Ð ......

α¾²Ì¬URLÖØÐ´¼¼ÊõʵÏÖ·½·¨ php asp

α¾²Ì¬Óõ½ÖªÊ¶ºÜ¼òµ¥Ò»µ©Ñ§»á£¬¿ìÀÖÎÞÇֻÐèÒªÕýÔòºÍ·þÎñÆ÷ÉèÖá£
  ÏÈ˵iisÈçºÎÉèÖðɣ¬ÍùÏ¿´
  ÏÂÔØ(IIS RewriteÄ£¿é): http://www.isapirewrite.com/,ÏȰѲúÆ·ÏÂÔØÏÂÀ´,°²×°ÔÚ·þÎñÆ÷ÉÏ,¼ÇסĿ¼,»áÓÐÀàËÆRewrite.dllµÄÎļþÉú³É,MMC→IISÐÅÏ¢·þÎñ¹ÜÀíÆ÷→ÍøÕ¾→ÄúµÄÕ¾µã→ÊôÐÔ,ÔÚ“ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ