You are here: Re: PHP-Yes, HTML-No --- Why? « PHP Programming Language « IT news, forums, messages
Re: PHP-Yes, HTML-No --- Why?

Posted by Barry on 01/25/06 13:10

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация