Since I am new to the language, and I haven't done much coding lately, I am inserting 'echo' or 'print' statements into the script I am writing so that the script can tell me whether the contents of a couple of variables are in fact being altered during the script. This tells me whether the script is functioning as I think it should at various times, so I can 'de-bug' the code.
BUT, I can't seem to get the 'new line' or 'carriage return' escaped properly. I have been using "\n\r" inside single quotes, double quotes, no quotes, a variable name, and still the output is all in one long string which is not easy to read. I even went to phpbuilder.com and snagged a line from their tutorial and can't get the output to print onto new lines for me in order to make the debugging simpler.
I'm thinking the correct code should be:
CODE
echo "this should be \n\n a new line here \n\rand here, too";
but it all comes out without the line feeds. As I said above, I've tried single quotes, double quotes, variables, no qoutes, concatenations, but they all fail...
Example output: a long string all run together:
QUOTE
flat_file_data.txtThis spans multiple lines. The newlines will be output as well.this should be a new line here and here, tooThis spans multiple lines. The newlines will be output as well.No forced echo... we have a handle/home/jlhaslip/public_html/testsidebar/flat_file_data.txtartfold @ artfold %line here/n/rartfold1 @ artfold1 %1line here/n/rartfold2 @ artfold2 %2line here/n/rartfold3 @ artfold3 %3line here/n/r @ %4line here/n/r
Any suggestions?

