Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/09/2008, 21:21
Avatar de vidalsoft
vidalsoft
 
Fecha de Ingreso: julio-2008
Ubicación: /www/...
Mensajes: 339
Antigüedad: 16 años, 6 meses
Puntos: 1
Respuesta: Como leer archivo

Hola segun lo que pides exactamente tiens que hacer asi:


Código PHP:
<?php 
//todo tu archivo.txt esta como un array en $file linea por linea
$file=file("archivo.txt");  //tenen en cuenta la ruta de tu archivo...

//y puedes recuerpar el contenido con 
foreach ($file as $line_num => $line) { 
echo 
$line[3]; 
?>
__________________
Anthony Vidal Contreras | @AnthonyVidalC | Skype: vidalsystem | [email protected]