Ver Mensaje Individual
  #3  
Antiguo 28-05-2008
Avatar de ixMike
ixMike ixMike is offline
Miembro
 
Registrado: feb 2004
Posts: 1.151
Reputación: 24
ixMike Va por buen camino
Hola.

Probé con file_get_contents(), que parecía que hacía lo que yo quería... pero no me ha funcionado.

Cree el archivio carga.php para hacer la prueba. Su código es este:

Código PHP:
<html>

<head>
<title>Prueba cargar texto</title>
</head>

<body>

Y aquí en contenido de del archivo datos.txt:<br><br>

<?php
$tamano 
filesize("datos.txt");
$texto file_get_contents("datos.txt"FALSENULL0$tamano);
echo 
$texto;
?>
<br><br>
¿Funcionó?

</body>

</html>
Por supuesto, el archivo datos.txt existe.

¿Qué hago mal?



Añado: me basé en esto.

Última edición por ixMike fecha: 28-05-2008 a las 17:23:15.
Responder Con Cita