Posted by Anonymous on 07/27/07 15:55
John wrote:
> >A php include has to go in a php file.
> >
> >HTML includes are normally done using SSI.
> >
> >If you are using HTL includes then you are asking in totally the wrong
> >place.
>
> That is incorrect.
>
> You can have php includes in a html file.
In theory, yes. In practice, no. Because most webservers are not
configured to parse a .html file through PHP.
If the filename does not end in .php (.php5 or other widely accepted
extension which denotes a PHP file) it won't be parsed and the PHP
include won't get executed.
Sure, if you have total control of the webserver you can tell it to
parse every file through PHP but this is considered bad practice as it
will slow down the server.
Bye!
[Back to original message]
|