ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾PHP ±à³Ì£¾PHP5ÖÐÎÄÊÖ²á
PHP5ÖÐÎÄÊÖ²á

ÔÓÀàÎÊÌâ

ÓÐЩÎÊÌâû·¨¹éµ½ÆäËüÀàÖУ¬¿ÉÒÔÔÚÕâÀïÕÒµ½¡£

  1. aœ¡§ Windows a£¬-a€Ža ¡¤a¡è„c† bz2 aŽ‹c¼ccš„a–‡a!¡êi¼Ÿ
  2. aœ¡§a‡½a•¡ãaRša1‰a£¬-i¼Œa‚a•¡ãa—e¾1cš„ & a˜¡¥a»€a1ˆa„a€i¼Ÿa¾‹a|‚ asort()a€‚
  3. a€Ža1ˆa¡è„c† register_globalsi¼Ÿ
  4. ÔÚ Windows ÖÐÔõÑù´¦Àí bz2 ѹËõµÄÎĵµ£¿

    Èç¹ûûÓÐÄÜ´¦Àí bz2 ÎļþµÄѹËõ¹¤¾ß£¬´Ó Redhat » ÏÂÔØÒ»¸öÃüÁîÐй¤¾ß£¨½øÒ»²½ÐÅÏ¢¼ûÏÂÃ棩¡£

    Èç¹û²»Ï²»¶ÓÃÃüÁîÐй¤¾ß£¬¿ÉÒÔÊÔÊÔÃâ·Ñ¹¤¾ßÀýÈç » Stuffit Expander£¬» UltimateZip£¬» 7-Zip »òÕß » Quick Zip¡£Èç¹ûÓÐÏñ » WinRAR »òÕß » Power Archiver Ö®ÀàµÄ¹¤¾ß£¬¿ÉÒÔºÜÈÝÒ×ÓÃËü½âѹËõ bz2 Îļþ¡£Èç¹ûÓà Total Commander£¨Ç°ÉíΪ Windows Commander£©£¬¿ÉÒÔ´Ó » Total Commander ÍøÕ¾Ãâ·ÑµÃµ½Ò»¸ö bz2 ²å¼þ¡£

    À´×Ô Redhat µÄ bzip2 ÃüÁîÐй¤¾ß£º

    Win2K Sp2 Óû§ÏÂÔØ×îа汾 1.0.2£¬ËùÓÐÆäËü Windows Óû§Ó¦¸ÃÓð汾 1.00¡£ÏÂÔغóÖØÃüÃû¿ÉÖ´ÐÐÎļþΪ bzip2.exe¡£Îª·½±ãÆð¼û½«Æä·Åµ½Ò»¸öÔÚÄã·¾¶ÖеÄĿ¼£¬ÀýÈç C:\Windows£¬C ±íʾÄã°²×° Windows µÄÅÌ·û¡£

    ×¢Ò⣺lang Ö¸µÄÊÇÄãµÄÓïÖÖ£¬x ÊÇÏëÒªµÄ¸ñʽ£¬ÀýÈ磺pdf¡£Òª½âѹËõ php_manual_lang.x.bz2£¬°´ÕÕÏÂÃæµÄ¼òµ¥ËµÃ÷½øÐУº

    • ´ò¿ªÒ»¸öÃüÁîÐд°¿Ú
    • ½øÈë´æ·ÅÒÑÏÂÔØµÄ php_manual_lang.x.bz2 µÄĿ¼
    • µ÷Óà bzip2 -d php_manual_lang.x.bz2£¬½« php_manual_lang.x Êͷŵ½Í¬Ò»¸öĿ¼

    ÔÚÏÂÔØÁË°üº¬ºÜ¶à html ÎļþµÄ php_manual_lang.tar.bz2 µÄÇé¿öÏ£¬¹ý³ÌÊÇÒ»ÑùµÄ¡£Î¨Ò»Çø±ðÊǵõ½ÁËÒ»¸ö php_manual_lang.tar Îļþ¡£tar ¸ñʽ¿ÉÒÔ±»´ó¶àÊý Windows ÏÂÁ÷ÐеÄѹËõ¹¤¾ßËù´¦Àí£¬ÀýÈç » WinZip¡£

    ÔÚº¯Êý¶¨ÒåÖУ¬²ÎÊýÅÔ±ßµÄ & ÊÇʲôÒâ˼£¿ÀýÈç asort()¡£

    Õâ±íʾ¸Ã²ÎÊýÊÇÒýÓô«µÝ£¬¸Ãº¯Êý»áÐÞ¸ÄÆäÖµ¡£Ö»¿ÉÒÔÓô˷½·¨´«µÝ±äÁ¿£¬Æäʵ¶¼²»ÐèÒªÔÚº¯Êýµ÷ÓÃÖÐÓà & ´«µÝ£¨´Ë·½Ê½¶¼ÒѹýʱÁË£©¡£

    Ôõô´¦Àí register_globals£¿

    ÓÐ¹Ø register_globals ʵÏÖ·½ÃæµÄ°²È«ÐÔ£¬ÇëÔĶÁʹÓà register_globals Ò»Õ¡£

    ÍƼöʹÓó¬È«¾Ö±äÁ¿¶ø²»ÒªÒÀÀµ register_globals¡£

    Èç¹ûÐèÒªÔÚһ̨¹Ø±ÕÁË register_globals µÄ¹²ÏíÖ÷»úÉÏÔËÐÐһЩ¾Éʽ³ÌÐò¶ø¸Ã³ÌÐòÐèÒª´ËÑ¡Ïî´ò¿ªÊ±£¬»òÕßÔÚһЩ´ò¿ªÁË´ËÑ¡ÏîµÄÖ÷»úÉϵ«ÏëÏû³ý°²È«Òþ»¼£¬ÄÇô¾ÍÐèÒªÓà PHP À´Ä£Äâ³öÏà·´µÄÉ趨¡£×îºÃÏÈÎÊÇå³þÊÇ·ñÄÜ·ñÔÚÄÄÀï¸ü¸Ä PHP ÅäÖõÄÑ¡ÏÈç¹û²»ÐУ¬ÄÇ¿ÉÒÔÓÃÈçϵļæÈÝÊֶΡ£

    Example#1 Ä£Äâ×¢²áÈ«¾Ö±äÁ¿

    ±¾ÀýÄ£Äâ register_globals On¡£Èç¹û¸Ä±äÁËÅäÖÃÎļþÖÐµÄ variables_order Ñ¡ÏÔò¿¼ÂÇ¶Ô $superglobals ×÷³öÏàÓ¦µÄ¸Ä¶¯¡£

    <?php
    // Emulate register_globals on
    if (!ini_get('register_globals')) {
        
    $superglobals = array($_SERVER$_ENV,
            
    $_FILES$_COOKIE$_POST$_GET);
        if (isset(
    $_SESSION)) {
            
    array_unshift($superglobals$_SESSION);
        }
        foreach (
    $superglobals as $superglobal) {
            
    extract($superglobalEXTR_SKIP);
        }
    }
    ?>

    ±¾ÀýÄ£Äâ register_globals Off¡£Òª¼Çס´Ë´úÂëÓ¦Ôڽű¾×ͷµÄµØ·½µ÷Óá£Èç¹ûʹÓÃÁ˻Ự»úÖÆ£¬ÔòÔÚ session_start() Ö®ºóµ÷Óá£

    <?php
    // Emulate register_globals off
    function unregister_GLOBALS()
    {
        if (!
    ini_get('register_globals')) {
            return;
        }

        
    // Might want to change this perhaps to a nicer error
        
    if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS'])) {
            die(
    'GLOBALS overwrite attempt detected');
        }

        
    // Variables that shouldn't be unset
        
    $noUnset = array('GLOBALS',  '_GET',
                         
    '_POST',    '_COOKIE',
                         
    '_REQUEST''_SERVER',
                         
    '_ENV',     '_FILES');

        
    $input array_merge($_GET,    $_POST,
                             
    $_COOKIE$_SERVER,
                             
    $_ENV,    $_FILES,
                             isset(
    $_SESSION) && is_array($_SESSION) ? $_SESSION : array());

        foreach (
    $input as $k => $v) {
            if (!
    in_array($k$noUnset) && isset($GLOBALS[$k])) {
                unset(
    $GLOBALS[$k]);
            }
        }
    }

    unregister_GLOBALS();

    ?>