Tema: fopen
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/06/2011, 07:42
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: fopen

Usa mejor file_get_contents() para leer el contenido de tu archivo en una variable, luego usa echo donde quieras imprimirlo, por ejemplo:
Código PHP:
Ver original
  1. <?php
  2. $contents = file_get_contents('archivo.txt');
  3. ?>
  4. <textarea name="bio"><?php echo $contents; ?></textarea>

Saludos.