Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 64013 invoked from network); 26 Apr 2004 19:46:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Apr 2004 19:46:33 -0000 Received: (qmail 365 invoked by uid 500); 26 Apr 2004 19:45:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 328 invoked by uid 500); 26 Apr 2004 19:45:52 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 228 invoked from network); 26 Apr 2004 19:45:51 -0000 Received: from unknown (HELO mail40.messagelabs.com) (38.118.4.19) by daedalus.apache.org with SMTP; 26 Apr 2004 19:45:51 -0000 X-VirusChecked: Checked X-Env-Sender: jeffrey_n_Dyke@Keane.com X-Msg-Ref: server-5.tower-40.messagelabs.com!1083008632!6611278 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [12.38.119.136] Received: (qmail 13698 invoked from network); 26 Apr 2004 19:45:55 -0000 Received: from smtp1.keane.com (12.38.119.136) by server-5.tower-40.messagelabs.com with SMTP; 26 Apr 2004 19:45:55 -0000 To: users@httpd.apache.org Cc: apache@wrightone.co.uk X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: jeffrey_n_Dyke@Keane.com Date: Mon, 26 Apr 2004 14:35:16 -0400 X-MIMETrack: Serialize by Router on SMTP1/Keane(Release 5.0.12 |February 13, 2003) at 04/26/2004 03:51:45 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] using php in header file X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N >I'm not sure if I can do what you are suggesting.... >I tried putting some php code in an .htm file and the php >code never got executed so I stop attempting that route... I've not followed this whole thread but if you wish to run php from an .htm file, you can add an .htaccess file to the directory where you want this to happen, and in that .htaccess file include these lines. RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html YMMV....HTH Jeff > -------- Original Message -------- > Subject: Re: [users@httpd] using php in header file > From: "tony wright" > Date: Mon, April 26, 2004 10:48 am > To: users@httpd.apache.org > > All I am doing is using the headerfile directive. check google or apache > site. > this only shows on directory listings (where there is no index or other > page > displayed. ) > regarding your problem, can't you just replace all the header code that > is > hardcoded with a couple of php lines to include a header file? > you could even use php to run through all your files doing the > replacement > > tony > > On Monday 26 April 2004 17:51, Billy Bacon wrote: > > Hi Tony, > > > > I was wondering if you could give me some details on your setup. It > sounds > > like you are doing something similar to what I WANT to do but I > haven't > > figured out a way to do it. > > > > My scenario: > > I inherited this site that is written in Perl/CGI. It uses > 'templates' > > which I wasn't aware of from the Perl/CGI world. In any case, the > header > > and footer section of the web site is hard coded in EVERY template > which is > > a maintanence nightmare for me. What I'd like to do is set up these > > Perl/CGI 'templates' (which are really just HTML files with a .htm > > extension) so that I can 'include' my header and footer that is > written in > > PHP. This will allow me to reuse my code obviously. But with Apache, > I > > don't know of a way that will allow me to do this since I'm new to > the > > Apache world. > > > > I was wondering if what you are doing would solve my problem. > > > > Any details, advice or suggestions would be awesome. > > > > Thanks > > > > - Billy - > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org