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:
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.
2 matches
Mail list logo