Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/01/2011, 09:15
Francohhh
 
Fecha de Ingreso: enero-2011
Ubicación: Buenos Aires
Mensajes: 3
Antigüedad: 13 años, 3 meses
Puntos: 0
Respuesta: Ver solamente 20 archivos de una carpeta

$directorio=dir($path);

echo "Servidores encontrados: <br><br>";

while ($archivo = $directorio->read())

{
$lines = file("servidores/$archivo");

foreach ($lines as $line_num => $line) {

$datos = explode(",", $line);

//if(strtoupper($datos[0]) == strtoupper($nombre)) {
if(strstr(strtoupper($datos[0]),strtoupper($nombre))){

echo "<hr><br><strong>Nombre del servidor</strong>: $datos[0]<br>
<strong>Sitio web del servidor</strong>: $datos[1]<br>
<strong>Email</strong>: $datos[2]<br>
<strong>Modificacion (MOD)</strong>: $datos[3]<br>
<strong>Host</strong>: $datos[4]<br>
<strong>Conexion</strong>: $datos[5]<br>
<strong>Slots</strong>: $datos[6]<br>
<strong>Experiencia</strong>: $datos[7]<br>
<strong>Oro</strong>: $datos[8]<br>
<strong>Nivel maximo</strong>: $datos[9]<br>
<strong>Innovaciones</strong>: $datos[10]<br>
<br><hr> $archivo";

}
}
}

$directorio->close();
}

Eso uso yo. Disculpame por no ponerlo.