Re: Beginner's attempt fails
| From: | Wico de Leeuw | Date: | Tue, 17 Oct 2000 15:45:18 +0000 |
| Subject: | Re: Beginner's attempt fails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20648@lists.php.net to get a copy of this message | ||
Hiya
\n stands for newline
use \\n to escape the first \
But i think your looking for the <BR> tag to go to the next line :)
Greetz,
Wico
At 01:00 18-10-00 +0930, Michael Talbot-Wilson wrote:
Well, in the end I got the php 4.0.2 module compiled into Apache 1.3.12 on Linux. But in the second little document I wrote the linefeed escape doesn't work. The '\n' disappears from the text but the lines don't get broken. See output below, and the pgp that produced it further below. Is there something here that I've failed to understand? (The choice of browser, Netscape/Linux, Lynx/Linux, Microsoft browser, doesn't make any difference.) --Mike ----------------------------------------------------------------- Here comes php. Hello from php. This should be the second line. And this should be the third. And this the fourth. ----------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/strict.dtd">xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Here comes php. <?php echo("Hello from php.\n"); echo "This should be the second line.\n"; echo "And this should be the third.\n"; echo "And this the fourth.\n"; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net