# no newline after "?>" in the resulting HTML

- Thread: https://externals.io/message/22518
- Original archive: https://news-web.php.net/php.internals/22518
- Started by Rostislav Krasny on 2006-03-18T08:43:49+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #22518 — Rostislav Krasny — 2006-03-18T08:43:49+00:00

URL: https://externals.io/message/22518#22518

Hi,

I am a newbie to PHP. I've installed a php5-cgi-5.1.2_1 from FreeBSD
ports collection and access it by FastCGI protocol from nginx HTTP
server. I've tried an example of "Hello World" PHP script from the
following tutorial page:

http://www.php.net/manual/en/tutorial.firstpage.php

This is how the resulting HTML code is expected to look like, according
to the tutorial:

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <p>Hello World</p>
 </body>
</html>

And following is the HTML code I've got:

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <p>Hello World</p></body>
</html>

Why there is no newline afer " <p>Hello World</p>" ?
Is it a PHP bug or the tutorial should be updated?

P.S. I'm not subscribed to this list, please Cc your reply.

---

## #22519 — Johannes Schlueter — 2006-03-18T11:14:29+00:00

URL: https://externals.io/message/22518#22519 · In reply to: #22518

Hi Rostislav,

this is no support forum but a place for discussing the development of the PHP 
runtime. PLease see http://php.net/support.php to see where to ask this kind 
of questions.

Thanks,
johannes


> Hi,
>
> I am a newbie to PHP. I've installed a php5-cgi-5.1.2_1 from FreeBSD
> ports collection and access it by FastCGI protocol from nginx HTTP
> server. I've tried an example of "Hello World" PHP script from the
> following tutorial page:
>
> http://www.php.net/manual/en/tutorial.firstpage.php
>
> This is how the resulting HTML code is expected to look like, according
> to the tutorial:
>
> <html>
>  <head>
>   <title>PHP Test</title>
>  </head>
>  <body>
>  <p>Hello World</p>
>  </body>
> </html>
>
> And following is the HTML code I've got:
>
> <html>
>  <head>
>   <title>PHP Test</title>
>  </head>
>  <body>
>  <p>Hello World</p></body>
> </html>
>
> Why there is no newline afer " <p>Hello World</p>" ?
> Is it a PHP bug or the tutorial should be updated?
>
> P.S. I'm not subscribed to this list, please Cc your reply.
