|
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]
|