I want to know if some link is online

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux