PDA

View Full Version : filesystem function?


jmad
07-06-2007, 01:33 PM
i am using php at the moment and am trying to display a file on a page i am able to do it the only problem is i loose all the spaces when it displays. it loses the layout and the line breaks i am wondering if the is a way to display the file as i see it in note pad or word its a text only file i tried doing a parsing to exchange the spaces with the code the adds a space in html i am think there has to be a way of doint this ?

misho
08-20-2007, 11:59 PM
You should just be able to wrap <pre> ... </pre> tags around it and it should work.

Description: http://htmlhelp.com/reference/html40/block/pre.html

jmad
08-21-2007, 01:51 PM
thank you very much this worked perfectly!