Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread David OBrien
At 03:16 AM 1/30/2004, Freedomware wrote: I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave Thanks for the tip. However, I must be doing something wrong. \n didn't work, so I searched Google for PHP + new line and found a page that said you have to use \r\n if

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Pavel Jartsev
Freedomware wrote: David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave ... Do I need to modify the new line code because my echo statements are enclosed in single quotes (' '), rather than double quotes ( )? newline-character

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
Got it. It took me a while to home in on the period. Thanks for the tips! Pavel Jartsev wrote: newline-character should be inside double quotes (\n). For example: instead of: echo 'link href=' . $periods . 'css/nations.css rel=alternate stylesheet type=text/css title=Nations /\r\n'; use:

RE: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Ford, Mike [LSS]
On 30 January 2004 08:55, Freedomware wrote: David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave Another way you could go, as this is mostly HTML with some PHP values thrown in, is to write it as such -- then all

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
Wow, thanks for the tips. That makes life a lot simpler! Mike Ford wrote: Another way you could go, as this is mostly HTML with some PHP values thrown in, is to write it as such -- then all your newlines are present exactly as they appear. This would look something like: By the way, the test

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Chris W
Freedomware wrote: I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one long line, like