ã¡ã¢ã§ãã çµè«ãç°¡åã«è¨ãã¨ãåå解決ã«å¤±æãããããããã°ã®ã¾ãã¾ã§ããã ãã ãåå解決ã«å¤±æããçç±ã¯ããããDNSãµã¼ããhostsãã¡ã¤ã«ã§ ãããè¤æ°ããå ã®ä¸ã¤ã§ãåé¡ãèµ·ããã¨ãªãå¯è½æ§ãããï¼ï¼ 以ä¸ãPHP 5.2.9ï¼RHEL4.5ç³»ã§ã®åä½ã«ã¤ãã¦åå¿é² 1ã/etc/resolv.confã«è¤æ°ã®DNSãµã¼ããè¨å® 2ãä»®ã«AãBã®DNSãµã¼ããå± ãã¨ã㦠test.example.comã®æ£å¼ããããå ´å Aâæ£å¼ãå¯è½ Bâexapmle.comã®ãã¡ã¤ã³ã¯å®ç¾©ãã¦ããããtest.example.comã¯æªå®ç¾© ã¨ããç¶æ³ 3ã以ä¸ã®ãã¡ã¤ã«ãä½æãããä»®ã«test.php <?php $text = file_get_contents('http://test.example.com'); print_r($text); exit(); ?> 4ãphp
{{#tags}}- {{label}}
{{/tags}}