Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

94 users online



displaying a text file line by line

displaying a text file line by line

Currently viewing this thread: 1 (0 members and 1 guests)


schoi

schoi

funny and cheeky
Status: Offline!

displaying a text file line by line

Hi
basically i have a log file I want to display on my webpage. I thought between lines it's just a new line on linux and a carriage return and newline on windows. Therefore my delimiter is the LF character right? then why doesn't this work
$data = explode('\n',$data); Am using linux so it's just a line feed.

nertman

nertman

lurker
Status: Offline!

well you have to do <br> if your viewing it as an html or php page... if it's not a plain txt so <br>\n

derek122

derek122

Neverside Newbie
Status: Offline!

Site Map 72
Site Map 73
Site Map 74
Site Map 75
Site Map 76
Site Map 77
Site Map 78

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0177 seconds.