Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/10/2005, 13:51
zuche
 
Fecha de Ingreso: mayo-2005
Mensajes: 148
Antigüedad: 19 años
Puntos: 0
Por cierto buscando y buscando me tome con este script en un solo archivo.php (lo pueden ver debajo)

Código PHP:
<?php
//Web Server Status v 1.4, Copyright 2002 By Ryan Schwiebert, visit http://www.schwebdesigns.com/
//This script may be freely distributed providing all copyright headers are kept intact. 

//Concept from:
//Abax Server Status v1.04, Copyright 2002 By Nathan Dickman, visit http://www.NathanDickman.com/
//Location of the live or dead server images

//Please change to your server specifications
$live "status/live.gif";
$dead "status/dead.gif";

//The status checking script
//meddle at your own risk!
//check for port number, default is 80
$link $_GET['link'].":";
$s_link str_replace("::"":"$link);
list(
$addr,$port)= explode (':',"$s_link");
if (empty(
$port)){
    
$port 80;
}
//Test the server connection
$churl = @fsockopen(server($addr), $port$errno$errstr20);
             if (!
$churl){
             
//echo $errstr;
                
header("Location: $dead");
                }
             else {
                   
header("Location: $live");             
          }
function 
server($addr){
         if(
strstr($addr,"/")){$addr substr($addr0strpos($addr"/"));}
         return 
$addr;
}
?>
La pregunta es..

DONDE SE INSERTA LA IP ??? EN QUE PARTE???

Este script lo pueden ver funcionando en

http://www.schwebhost.com/serverstatus/

de ahi lo descargue, aver si alguien me guia.

Saludos!
__________________
(8)Esta es la numero uno, que te sigue a todas partes,
siempre con sus estandartes,
y un grito de corazon, RACING CAMPEON
RACING CAMPEON, en el este y el oeste,
en el norte y en el sur, brillara blanca y celeste la academia RACING CLUB y la acade, y la acade... (8)