Re: 404

From: Date: Fri, 05 Jan 2001 21:04:56 +0000
Subject: Re: 404
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32934@lists.php.net to get a copy of this message
Hello Andres, (AA == "Andres Andres") Andres.Andres.001@mail.ee writes: AA> i have a problem. i want to let a php program take some links from AA> database and display them. But before displaying them i want php AA> to find out which ones of these links are "dead". <?php function isValidLink($url) { return @fopen($url, 'r'); } print( ! isValidLink('http://yahoo.com') ? 'Dead' : 'Alive'); ?> -Brian

« previous php.general (#32934) next »