Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 


Ïà¹ØÎĵµ£º

php °²È«Ä£Ê½µÄ²»×ã

PHPµÄsafe_modeÑ¡ÏîµÄÄ¿µÄÊÇΪÁ˽â¾ö±¾ÕÂËùÊöµÄijЩÎÊÌâ¡£
µ«ÊÇ£¬ÔÚPHP²ãÃæÉÏÈ¥½â¾öÕâÀàÎÊÌâ´Ó¼Ü¹¹ÉÏÀ´¿´ÊDz»ÕýÈ·µÄ£¬ÕýÈçPHPÊÖ²áËùÊö(http://php.net/features.safe-mode)¡£
µ±°²È«Ä£Ê½ÉúЧʱ£¬PHP»á¶ÔÕýÔÚÖ´ÐеĽű¾Ëù¶ÁÈ¡£¨»òËù²Ù×÷£©ÎļþµÄÊôÖ÷½øÐмì²é£¬ÒÔ±£Ö¤Óë¸Ã½Å±¾µÄÊôÖ÷ÊÇÏàͬµÄ¡£
ËäÈ»ÕâÑùȷʵ¿ÉÒÔ·À·¶±¾ÕÂÖÐ ......

PHPÓÃmkdir()н¨Á¢Ä¿Â¼ÎÞдµÄȨÏÞµÄÎÊÌâ

PHPÓÃmkdir()н¨Á¢Ä¿Â¼ÎÞдµÄȨÏÞµÄÎÊÌâ
ÔÄÀÀ´ÎÊý:
½ñ
Ìì:0 ×Üä¯ÀÀ:526
ÎÄÕÂÀ´Ô´: CPÕûÀí
Ô­ÎÄ×÷Õß:
ÕûÀíÈÕÆÚ: 2008-08-14
º¯ÊýmkdirÓÐÁ½¸ö²ÎÊý£¬Ä¿Â¼Â·¾¶ºÍ·ÃÎÊȨÏÞ
Àýmkdir('/tmp/test',0777)
È»ºóÒªµÃµ½µÄȨÏÞÂ룬²»Ò»¶¨ÊÇÉϱßÉ趨µÄ£¬µ±Ç°ÏµÍ³µÄumask½«»áÓëÉ趨µÄÖµ‘Óë’£¬ÕâÑù×Ó²ÅÊÇÕæÕýµÄȨÏÞ ......

phpÏÂÔØÎļþ´úÂë

Ò»°ãµÄÎļþ°²È«ÏÂÔØ·½·¨¿ÉÒÔʹÓÃÏÂÃæµÄ´úÂë:
1. <?php?
2.
3. $durl = 'file/phpcms2008_o2abf32efj883c91a.iso';
4. $filename = 'phpcms2008_o2abf32efj883c91a.iso';
5. $file = @fopen($durl, 'r');
6. header("Content-Type: application/octet-stream");
......

php Êý¾Ý¹ý´ó ÄÚ´æÒç³ö


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in :\Inetpub\wwwroot04\test.php on line 8
Fatal error: Out of memory (allocated 259,260,416) (tried to allocate 16 bytes) in C:\Inetpub\wwwroot04\test.php on line 8
//ini_set('memory_limit', '-1');
$inde ......

PHPµÄ°²×°ÒÔ¼°ÅäÖÃ

°²×°ÒÔ¼°ÅäÖÃ
1.       °²×°Apache-2.2.4(Apache_Dir=D:\myspace\Apache-2.2.4)
2.       ½âѹ°²×°PHP-5.2.11(PHP_Dir=D:\myspace\PHP-5.2.11)
3.       ÕÒµ½PHP-5.2.11ϵÄphp.ini-dist£¬¸ÄÃûΪphp.ini
4.  &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ