Oct 24, 2006 #1 james0816 Programmer Jan 9, 2003 295 US I thought this was for advancing a line yes/no? echo "HI!\n"; echo "BYE!"; should produce: HI! BYE! instead i get: HI! BYE!
I thought this was for advancing a line yes/no? echo "HI!\n"; echo "BYE!"; should produce: HI! BYE! instead i get: HI! BYE!
Oct 24, 2006 Thread starter #2 james0816 Programmer Jan 9, 2003 295 US trying to advance to the next in a text file. So far I have used \n which is doing nothing and even tried <br /> but that is writing <br /> to the text file. Upvote 0 Downvote
trying to advance to the next in a text file. So far I have used \n which is doing nothing and even tried <br /> but that is writing <br /> to the text file.
Oct 24, 2006 #3 jpadie Technical User Nov 24, 2003 10,094 FR you need to be sure that you are viewing the file in a compatible reader. windows notepad likes "\r\n" whereas linux terminators are "\n". use crimson editor or similar on a windows platform or use the built in constant PHP_EOL as the line terminator Upvote 0 Downvote
you need to be sure that you are viewing the file in a compatible reader. windows notepad likes "\r\n" whereas linux terminators are "\n". use crimson editor or similar on a windows platform or use the built in constant PHP_EOL as the line terminator
Oct 24, 2006 Thread starter #4 james0816 Programmer Jan 9, 2003 295 US yep....the \r\n combo got it. thx Upvote 0 Downvote
Oct 24, 2006 #5 dwlerwill Technical User May 25, 2001 329 best way i have found is echo "<br>"; works well and easy to spot when making chages David Lerwill "If at first you don't succeed go to the pub" Upvote 0 Downvote
best way i have found is echo "<br>"; works well and easy to spot when making chages David Lerwill "If at first you don't succeed go to the pub"
Oct 24, 2006 #6 jpadie Technical User Nov 24, 2003 10,094 FR <br> is an html tag. the op was after a solution for text files. Upvote 0 Downvote