If it's a file ending in .txt, you don't need PHP at all to make visual on
the web, most browsers will just display it on the screen. Just link to it.

  But, if you want to echo it inside html, do:

$filename = 'path/to/file.txt';
$fd = fopen($filename,'r'); // might be 'rb', check manual page for fopen();

  From here, you might go with readfile(); or file(), that will display the
pointer's content (on this case, $fd). It might be necessary to change
newlines for <br>, though. (nl2br(); or similar)


Julio Nobrega.

Um dia eu chego lá:

Ajudei? Salvei? Que tal um presentinho?

"Sven Jacobs" <[EMAIL PROTECTED]> wrote in message
> Hey
> I have a TEXT file that I want to make visual via the web using php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to