Moron Posted July 19, 2007 Share Posted July 19, 2007 I was trying the wordwrap() function and it works as advertised, but it doesn't present the text file like Notepad does. I want to display a file exactly like I see it in Notepad with Word Wrap on. Ideas? Quote Link to comment Share on other sites More sharing options...
chigley Posted July 19, 2007 Share Posted July 19, 2007 <?php echo "<pre>".wordwrap(file_get_contents("file.txt"))."</pre>"; ?> Like that? Quote Link to comment Share on other sites More sharing options...
Moron Posted July 19, 2007 Author Share Posted July 19, 2007 <?php echo "<pre>".wordwrap(file_get_contents("file.txt"))."</pre>"; ?> Like that? Yep! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.