Posted by Davide on 03/23/07 16:33
Hi all.
I've got a textual file with some words inside:
file = foo.txt
foo1 foo2
foo3 foo4
foo5 foo6
I would like to print this text on a the web.
I tried to use the file function:
$file = "/var/www/backup/foo.txt";
$content = file_get_contents($file);
echo "$content";
but I get
foo1 foo2 foo3 foo4 foo5 foo6
how can I get the output as the original file?
Really thanx
Navigation:
[Reply to this message]
|