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
[EMAIL PROTECTED]
(303)828-9882
- Original Message -
From: Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php