Re: Link Checking

From: Date: Sun, 26 Nov 2000 22:47:58 +0000
Subject: Re: Link Checking
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27285@lists.php.net to get a copy of this message
fopen a socket to the server you want to check (moo.com in this case) on port 80. send HEAD http://www.moo.com/bla.exe HTTP/1.0\n\n The first line back on the socket should be HTTPxxx 200 or 302 or 404 or whatever. Check that line for a 404. If it's 404 it's 'not found'. Holev` wrote: > Hi, > Lets say I want to check if the url: http://www.moo.com/bla.exe > works, > it's not enough to check if I can connect to it, I also want to make sure it > doesn't end up at a file http://www.moo.com/404.html . > How can this be done ? > > thanx. > > -- > _______________________________________________ > David Berlin > webmaster@builder.co.il > -- ========================== Michael Kimsal PHP mega search http://www.phphelpdesk.com/search/ PHP Training courses http://www.tapinternet.com/php

« previous php.general (#27285) next »