Re: apache and PHP
by "Darrell King" <darrell(at)webctr.com>
|
| Date: |
Sat, 7 Jun 2003 19:42:31 -0400 |
| To: |
"howardm" <howardm(at)achilles.net>, "HWG Techniques" <hwg-techniques(at)hwg.org> |
| References: |
howardm |
| |
todo: View
Thread,
Original
|
|
You have to tell Apache to parse HTML pages for PHP instructions. You can
do this easily by placing an .htaccess in your HTML root with this line in
it:
AddType application/x-httpd-php htm html php css
Alternatively, you can add the line to httpd.conf.
D
----- Original Message -----
From: "howardm" <howardm(at)achilles.net>
I'm using Apache version 2 on my PC so that I can check SSI includes before
I upload my webpages, no problem there, but what do I have to do to the
Apache config file so that it will recognise PHP includes?
Is it just the config file I have to change or maybe I'm not doing the
include instructions properly.
I'm using <? include ("menu.php"); ?> with the .php file just a renamed
text file containing html.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.