Re: Usage of PHP?


Subject: Re: Usage of PHP?
From: Christopher Murtagh (christopher.murtagh@mcgill.ca)
Date: Tue Dec 25 2001 - 14:36:00 MST


On Mon, 24 Dec 2001, Mark Jaffe wrote:
>On 12/24/01 4:05 PM, "Sam Moore" <samiwas@macconnect.com> wrote:
>> Make sure httpd.conf contains something like
>> AddType application/x-httpd-php .php .php3 .html
>> (syntax may vary depending on your Apache version - make sure it's
>> not commented out!).
>
>Exactly! That was it; thanks, Sam!

 In this case what you should really be doing is rename your pages that
have embedded php code to something.php and remove .html from the php
AddType line. Otherwise *every* html page will be parsed by the PHP parser
which is usually not desireable, especially if you have a busy web site.
If you plan on having PHP code in every page then perhaps still consider
renaming them foo.php anyway and reserve .html for non-parsed documents.

Cheers,

Chris

-- 

Christopher Murtagh Webmaster / Sysadmin Web Communications Group McGill University Montreal, Quebec Canada

Tel.: (514) 398-3122 Fax: (514) 398-2017



This archive was generated by hypermail 2a24 : Tue Dec 25 2001 - 14:49:22 MST