RE: [PHP-WIN] Newline is not working !
| From: | Gregory_Griffiths at cargill dot com | Date: | Thu, 16 Nov 2000 13:48:31 +0000 |
| Subject: | RE: [PHP-WIN] Newline is not working ! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3902@lists.php.net to get a copy of this message | ||
your code is fine, but the browser will ignore the \n, replace it with
a <br> or a <p> and it will work.
> -----Original Message-----
> From: mujahid@iqura.net [mailto:mujahid@iqura.net]
> Sent: 16 November 2000 13:44
> To: php-windows@lists.php.net
> Cc: mujahid@iqura.net
> Subject: FW: [PHP-WIN] Newline is not working !
>
>
> I guess this must really qualify as stupid but this is my
> first day in PHP.
> I have PHP4 on NT Workstatation and PWS. Using PHPEd as my editor.
>
> When I say something as elementary as this in my php page
>
> <?
> echo "This is a php test\n" ;
> $var = "This is a string\n\n" ;
> echo $var ;
> ?>
> The newline doesn't work when I view the page in a browser. I
> am using IE
> 5.0 and NN 4.7
> Newlines however do work when I run the php file throo PHPEd.
> My file extension is .php
> I haven't made any change to the php.ini
> What could be happening ?
>
>
> --
> Mujahid
>
> MURPHY'S LAW
> If anything can go wrong, it will.
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>