Re: Link Checking
| From: | Holev` | Date: | Sat, 25 Nov 2000 16:38:53 +0000 |
| Subject: | Re: Link Checking | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27155@lists.php.net to get a copy of this message | ||
That is a bad solution if you have a 10 mb file.
thanx anyways.
----- Original Message -----
From: "Joe Stump" <joe@earth.care2.com>
Newsgroups: php.general
Sent: Saturday, November 25, 2000 2:58 PM
Subject: Re: [PHP] Link Checking
> <?
>
>
> $fp = fopen('Ω
> 3Axw�QzAï…a¶http://www.moo.com/bla.exe','r');
> while(!feof($fp)){
> $line = trim(fgets($fp,4096));
> if(ereg("404",$line)){
> echo 'OMG 404!!!!';
> exit;
> }
> }
> fclose($fp);
>
>
> ?>
>
>
>
> On Sat, Nov 25, 2000 at 12:29:38PM +0200, 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
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
============================================================================
====
> = Joe Stump joestump98@yahoo.com
http://www.miester.org =
>
============================================================================
====
> Need a programmer?
> http://www.google.com/search?q=joe+stump+resume
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>