Re: Re: running php with .html files?

From: Date: Sun, 28 Jul 2002 21:16:46 +0000
Subject: Re: Re: running php with .html files?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110067@lists.php.net to get a copy of this message
You need to append or create a .htaccess file in the same folder as index.html, and add this line: <Files "index.html"> ForceType application/x-httpd-php </Files> Then, just treat the index.html file as a php file. HTH, Peter Janett New Media One Web Services ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PostgreSQL coming soon! http://www.newmediaone.net webmaster@newmediaone.net (303)828-9882 ----- Original Message ----- From: "Peter" <newsaddress@saracenvsu.org.uk> To: <php-general@lists.php.net> Sent: Sunday, July 28, 2002 1:16 PM Subject: [PHP] Re: running php with .html files? > Why can't you just have > <?PHP > at the top of the page and > ?> > at the bottom? > > > "Henry" <henry@teacake.f9.co.uk> wrote in message > news:20020728071807.34569.qmail@pb1.pair.com... > > Hi All, > > > > I'm sure I saw a posting on this subject a month ago so please excuse me > for > > not paying attention the first time ;-| > > > > I have a php script that I wish to execute but I want to put it in > > index.html (not index.php) > > > > I know there is a solution involving configuration files in either the > > directory wher the file is held or specifically for the server. > > (Unfortunately I don't have access to the conf files for the server > because > > I'm currently using a shared serever from an ISP). > > > > Any help is greatly appreciated. Even pointers in the right direction > would > > be useful. > > > > TIA > > > > Henry > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#110067) next »