Re: Quick Question: Line Breaks
| From: | Micah Stevens | Date: | Fri, 09 Jan 2004 04:05:24 +0000 |
| Subject: | Re: Quick Question: Line Breaks | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32333@lists.php.net to get a copy of this message | ||
\n is not converted to a newline unless you use double quotes around the
string.
See: http://us3.php.net/manual/en/language.types.string.php
-Micah
On Thu January 08 2004 7:58 pm, Jacob Hackamack wrote:
> Hello,
>
> I have a couple of quick questions. When I execute this code on my php
> page (I know that the .PSD image isn¹t web ready, but Safari does what I
> need it to do :) ) it displays the entire source as one line. Is there
> anyway to have it be broken. I have read places (internet sites) that say
> that the following solutions might work:
> echo ¹;\n\n
> echo ¹\n\n ;
> echo \n\n¹;
>
> None of them seem to work, am I doing something wrong?
>
>
> echo '<meta http-equiv="content-type" content="text/html;
> charset=utf-8">';
> echo '<html>';
> echo '<head>';
> echo '<title>';
> echo 'FilmCanister Desktops';
> echo '</title>';
> echo '</head>';
> echo '<body>';
> echo '<center>';
> echo '<img src="images/Rotating.psd">';
> echo '<h2>';
> echo 'Coming Soon....Desktop Pictures (2.83 GB Worth)</h2>';
> echo '</center>';
> echo '</body>';
> echo '</html>';
>
> Also, I am looking for a good freeware image gallery for Linux/Apache, if
> anybody has any suggestions please help out.
>
> Thanks for advance.
>
> Jacob