Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 65077 invoked from network); 26 Apr 2004 19:48: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:48:33 -0000 Received: (qmail 6980 invoked by uid 500); 26 Apr 2004 19:48:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6969 invoked by uid 500); 26 Apr 2004 19:48:08 -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 6948 invoked from network); 26 Apr 2004 19:48:08 -0000 Received: from unknown (HELO smtpout-1-2c.secureserver.net) (64.202.165.66) by daedalus.apache.org with SMTP; 26 Apr 2004 19:48:08 -0000 Received: (qmail 4531 invoked from network); 26 Apr 2004 19:48:23 -0000 Received: from unknown (HELO webmail04.mesa1.secureserver.net) (64.202.166.125) by smtpout-1-2c.secureserver.net with SMTP; 26 Apr 2004 19:48:23 -0000 Received: (qmail 6162 invoked by uid 99); 26 Apr 2004 19:48:13 -0000 Message-ID: <20040426194813.6161.qmail@webmail04.mesa1.secureserver.net> Date: Mon, 26 Apr 2004 12:48:13 -0700 From: Billy Bacon To: users@httpd.apache.org 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'll try everyones suggestions and let you know how I make out. Thanks fellas! - Billy - > -------- Original Message -------- > Subject: Re: [users@httpd] using php in header file > From: "BAO RuiXian" > Date: Mon, April 26, 2004 12:41 pm > To: users@httpd.apache.org > > David Benson wrote: > > >>I am sure there is somewhere to tell apache or php which file > extensions to > >>use as php files but I can't remember where it is. > >> > >>perhaps someone else out there could tell us? > >> > >> > >[snip...] > >2. Apache knows which files to treat as PHP files... > > > > # Tell Apache to feed all *.php files through the PHP module > > AddType application/x-httpd-php .php > > > > > > I think you can add .html .htm etc. after .php in the above line. Then, > > you can execute the php code in a file ending with .html and .htm, but > > it will consume much of resources from the server due to all .html and > > .htm files have to be parsed/executed by the PHP engine. > > Best > > Bao > > >3. If you want to treat index.php as a default (IMO, good idea) > > > > # If you want to allow index.php to be default... > > DirectoryIndex index.php index.html > > > > > >I hope that helps... Maybe someone else can chime in about the > template/head > >file issue... :-) > > > > > >Regards, > >David Benson > > > > > >On Monday 26 April 2004 12:03 pm, tony wright wrote: > > > > > >>On Monday 26 April 2004 19:27, Billy Bacon wrote: > >> > >> > >>>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 think it has to do something with the > Perl/CGI > >>>scripts and how the 'template' code is sent to the browser and it's > not > >>>executed on the server, therefore the php code never gets executed > :-/ > >>> > >>> > >>I am sure there is somewhere to tell apache or php which file > extensions to > >>use as php files but I can't remember where it is. > >> > >> > >> > >> > > > > > > > --------------------------------------------------------------------- > 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