[nycphp-talk] php include file question
brian at preston-campbell.com
Mon Mar 31 20:56:40 EST 2003
When it is necessary for me to use PHP on an existing site, I add an
.htaccess file to specify that .htm and .html will be parsed as .php
files. Without involving the sysadmin, and assuming that it is an
Apache server, this is a pretty simple solution, with the negative
loss of performance when -ever-single-html-page- page is parsed
whether it contains php or not.
One simple line in .htaccess:
AddType application/x-httpd-php .htm .html
Though I might chime in.
On Monday 31 March 2003 06:12 pm, Analysis & Solutions wrote:
> On Mon, Mar 31, 2003 at 05:38:41PM -0500, Deidra McIntyre wrote:
> > I have basic html pages for the site. Let's take one of them,
> > index.html.
> As others have mentioned, are your files with .html extensions
> being parsed by PHP? View the page in your web browser. Now view
> the source HTML code of that page using your web browser. What
> does it show in the areas you have the include statements?
> Without this information, you're sending yourself, and us, on a
> wild goose chase.
More information about the talk