PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I use \n a lot, but when I view the file's source, PHP doesn't put things on a new line, all the editors see is a box. Is there another way to do a carrage return?
The new line characters used by windoes is \r\n rather than just the \n used by windows... So if you are viewing the file with a windows editor it will not skip to the next line...
Yup use \r\n and you'll be fine.
I had the same problem and haven't encoutered it since I switched from \n to \r\n.
and thx for the explanation sam I didn't have the problem on my unix server/host but only on my windows system on which I write my scripts.. now I understand it