Re: [PHP] checking if URL's exist

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 6:18 AM, <[EMAIL PROTECTED]> 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 > -

Re: [PHP] checking if URL's exist

2008-07-09 Thread Maxim Antonov
You need $s= fsockopen('host.com',80); fwrite($s,"GET ".$URL." HTTP/1.1 \r\n"); fwrite($s,"Host: host.com \r\n\r\n"); and you must read first string - if url exists string begining with 200 or 304 if url not exists string begin - is 404 Børge Holen пишет: On Wednesday 09 July 2008 12:18:

Re: [PHP] checking if URL's exist

2008-07-09 Thread Børge Holen
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] 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 ping

[PHP] checking if URL's exist

2008-07-09 Thread cr.vegelin
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