For doing formatting with the printf(), there is need to wrap output in <pre> tags. Is this the best way of showing formatted plain text on a browser?
If you want to output an entire text document to the browser, however, it is neater to tell the browser to format the entire output as plain text. You can do this with the header() function:

Leave a Reply
You must be logged in to post a comment.