On Wed, Jul 9, 2008 at 6:18 AM, <cr.vegelin@xxxxxxxxx> wrote: > Hi All, > > I have a Directory table with hundreds of URL's to sites > and want to check periodically if all the URL's still exist. > Does anyone know of a utility to check this ? > Or a pointer to a piece of code ... > > TIA, Cor > <?php // $urls = Your array of URLs foreach($urls as $u) { if(file_get_contents($u)) { echo $u." appears to exist.\n"; } else { echo $u." does not appear to exist.\n"; } } ?> -- </Daniel P. Brown> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php