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
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
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
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:
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
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
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
7 matches
Mail list logo