PHPã¯ãµã¤ã解æããããã«URLããæ å ±ãåå¾ããæ¹æ³ãããããããã ãã®ä¸ã¤ã«cURLã¨ããã®ãããã cURLã§ã¯HTTPã¹ãã¼ã¿ã¹ã³ã¼ãã300ç³»ãªã©ã§æ¢ã«ç§»è»¢ãã¦ãã¾ã£ããµã¤ããªã©ã¯ ãªã¯ã¨ã¹ãã®ãããã«Locationãããã°ãªãã¤ã¬ã¯ããã¦ãã©ã£ã¦ããæ©è½ãããã //URLãæå®ãã $url='google.co.jp'; //cURLãåæåãã¦ä½¿ç¨å¯è½ã«ãã $curl=curl_init(); //ãªãã·ã§ã³ã«URLãè¨å®ãã curl_setopt($curl,CURLOPT_URL,$url); //Locationããã©ã curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true); //æ大ä½åãªãã¤ã¬ã¯ãããã©ãã curl_setopt($curl,CURLOPT_MAXREDIRS,10); //ãªãã¤ã¬ã¯ãã®éã«ã
{{#tags}}- {{label}}
{{/tags}}