Re: PHP-Yes, HTML-No --- Why?
- From: Barry <b@xxxxx>
- Date: Wed, 25 Jan 2006 13:10:14 +0200
Lennart Björk wrote:
Barry,
> test.html just gets printed out right?
To a certain extent, yes. It looks like
>>> '; echo(" Host: $host"); echo(" Server: $server"); ?> <<<
I am still confused.
ok the way php works is that if the web server has to serve a file with a .php extension, it recognises it as a PHP file and it sends it through the PHP parser and then it serves you the resulting html.
the .html file just gets served as is.
because .php went though the parser, you get the parsed php results because .html just got served, you got the php code as is
it is possible to set up the server to send .html files through the parser aswell, but as a norm this is not done.
Regards, Barry
Lennart Björk
.
- Follow-Ups:
- Re: PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- Re: PHP-Yes, HTML-No --- Why?
- References:
- PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- Re: PHP-Yes, HTML-No --- Why?
- From: Barry
- Re: PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- PHP-Yes, HTML-No --- Why?
- Prev by Date: Re: Best way to start learning...?
- Next by Date: Re: PHP-Yes, HTML-No --- Why?
- Previous by thread: Re: PHP-Yes, HTML-No --- Why?
- Next by thread: Re: PHP-Yes, HTML-No --- Why?
- Index(es):
Relevant Pages
|