Reply to A fast alternative to HTTP::head ?

Your name:

Reply:


Posted by Ming on 06/23/07 05:17

I have tens of thousands of links. All links will redirect visitors to
another URL (the real URL). I want to know the real URLs behind those
redirecting URLs.

I just wrote a small piece of code to do it:

$result = HTTP::head($link);
if (PEAR::isError($result)) {
echo "Error: " . $result->getMessage()."<br>";
} else {
$chunks=split('%2F',$result['Location']);
echo "\t".$chunks['2'].'<br>';
}

It works, but it is simply too slow to get the real (destination) URLs
for tens of thousands of redirecting URLs.

Is there a fast way to do that?

Thanks,

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация