From owner-freebsd-questions Tue Oct 16 13:25:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dv-db.com (dv-db.com [207.159.141.95]) by hub.freebsd.org (Postfix) with ESMTP id 5E6F837B40C for ; Tue, 16 Oct 2001 13:25:04 -0700 (PDT) Received: from mark2 (usr957-bh2.blueyonder.co.uk [62.30.235.205]) by dv-db.com (8.9.3/8.9.3) with SMTP id VAA00900; Tue, 16 Oct 2001 21:24:58 +0100 (GMT/BST) Message-ID: <00de01c15680$7aaec040$cdeb1e3e@mark2> From: "mark / badger?" To: "Gerald T. Freymann" , References: <00de01c1567d$2c2f1b70$0f01a8c0@phantom> <00b701c1567e$8d8b4ff0$cdeb1e3e@mark2> <00f001c15680$7cd0b5e0$0f01a8c0@phantom> Subject: Re: quick php/apache question re the tags Date: Tue, 16 Oct 2001 21:23:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Couple of possibilities - the file must have the extension .php to be > > recognised by apache as php-parseable > > Well, that part I know works ;-) yes, sorry, reading the question wrong... > I'm trying to be able to embed php commands in .html files and have them > processed as well. > > I used "apachetoolbox" to do the installation of apache/php. There's some > simple option that likely needs to be in my httpd.conf file but I can't > find it. This will have the effect of parsing ALL webpages for php - on a busy webserver this could be a performance hit if you serve a lot of static HTML that doesn't need parsing. However... I think adding in another line like : AddType application/x-httpd-php .php Except reading : AddType application/x-httpd-php .html AddType application/x-httpd-php .htm Should work... you may be able to combine them all on one line, not sure if this: AddType application/x-httpd-php .php .html .htm will work or not, give it a try if you're not on a production machine and see what happens :+) Hope this works... Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message