|
Posted by Bent Stigsen on 01/23/06 01:06
A.Translator wrote:
> Geoff Berrow schreef op 22-1-2006
>
>> Of course it works, php pages out put html. What isn't working?
>
>
> I am sure it works, it is me who is not working properly.
>
> What do you mean with:
> php pages out put html?
Per definition, "PHP is a server-side HTML embedded scripting
language.", which basically means that, if you take a html-page, and
change the extension to .php, then that page is a perfectly valid
php-script. You could embed PHP-code whereever you want on the page
and optionally output something at that place.
PHP can actually output any type of document/data, however for
embedded scripting, it is limited to document-formats that does not
collide with the PHP open/close tags.
To answer your original question, when using php as a server-side HTML
embedded scripting language, the browser will not see any difference
between requesting a html-page or a php-page, other than the extension
of course. Stylesheets are handled by the browser, unrelated to the
php-code at the server or the extension of the requested file.
/Bent
Navigation:
[Reply to this message]
|