[PHP] I want to know if some link is online

2005-10-09 Thread Jesús Alain Rodríguez Santos
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:

Re: [PHP] I want to know if some link is online

2005-10-09 Thread Jasper Bryant-Greene
Jesús Alain Rodríguez Santos wrote: 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); Why not use file_exists()? Also, you probably want to use $_GET['enlance'] rather than $enlance.