$url = parse_url("http://domainclub.org/index.html"); $path = substr($url[path],1); var_dump(is_file($path)); //用is_file()判斷是否為檔案