Alexaのトップ100万のリストがあります。これらの 100 万のサイトのうち、ページ www.domain.com/pageNameUrl を持つサイトはどれかを確認したいと考えています。私は試した
foreach($sites as $site){
$file_headers = @get_headers($site);
if(strpos($file_headers[0],"200 OK") !== false) {
$exists = true;
//save site name code...
} else {
$exists = false;
}
}
しかし、このコードは時間がかかりすぎます。すべてのサイトを通過するには、1 か月またはそれ以上かかります。他のより速い方法はありますか?