Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/11/2005, 11:31
epiky
 
Fecha de Ingreso: septiembre-2005
Mensajes: 27
Antigüedad: 18 años, 7 meses
Puntos: 0
muchas gracias a los dos!!!
al final, trasteando con hotscripts he encontrado una forma de hacerlo con php sin que me lo escupa la firma. Además me ha venido muy bien ya que he podido hacer un listado con los demás ftps para ver su disponibilidad

Por si le sirve de algo a alguien...
Subiendo a un server siempre online

index.php
Código PHP:
<?




echo "<table border='0' align='center'>";
echo 
"   <tr><td bgcolor='#FFFFFF' width='100'><p class='style2'> Nombre del servidor </p> </td>      <td bgcolor='#FFFFFF' width='100'><p class='style3'>Estado</p></td></td></tr>";
echo 
"   <tr><td width='200'></td><td width='100'></td></tr>";


//ftp de yyy
$hostname "yyy.no-ip.com";
echo 
"   <tr><td width='200'> $hostname </td>      <td width='100'> <div align='center'><img src='image.php?host=$hostname&port=21'></div></td>";

//ftp de zzz
$hostname "zzz.no-ip.info";
echo 
"   <tr><td width='200'> $hostname </td>      <td width='100'> <div align='center'><img src='image.php?host=$hostname&port=21'></div></td>";

//ftp de xxxx
$hostname "xxx.no-ip.org";
echo 
"   <tr><td width='200'> $hostname </td>      <td width='100'> <div align='center'><img src='image.php?host=$hostname&port=21'></div></td>";

// mas ftps

?>
image.php
Código PHP:
<?php
error_reporting
(0);

header("Content-type: image/gif");


    
$fp fsockopen($host$port,$errno,$errstr4);
         if (!
$fp){
             
readfile('offline.gif');
         } else {
         
readfile('online.gif');
             
fclose($fp);
         }



?>
Y un par de imágenes online/offline.
Luego en la firma
Código:
<img src='image.php?host=xxx.no-ip.org&port=21'>
Lo dicho, aún asi, muchas gracias