I want to know if some link is online

From: Date: Mon, 10 Oct 2005 05:19:13 +0000
Subject: I want to know if some link is online
Groups: php.general 
Request: Send a blank email to php-general+get-223801@lists.php.net to get a copy of this message
I would like to know if a web is online, a have this code: enlace.php <? $vivo = "verde.gif"; $muerto = "rojo.gif"; $enlinea = fopen("$enlace", "r"); if (!$enlinea){ header("Location: $muerto"); } else { header("Location: $vivo"); } fclose($enlinea); ?> In other page I hve this: page.php <img src="estado.php?enlace=http://www.cfg.jovenclub.cu"> Somebody can tell me what it's wrong, because the image did not show, of course that the pages and bouth image are in the same dorectory. Please any suggestion -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio.

« previous php.general (#223801) next »