Forum Moderators: coopster
Made a text file called .htaccess.txt put in the following
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Uploaded it my root directory, same as files to be parsed, I have 8 files here as follows
1)test.php (<? phpinfo();?> ) this is to test PHP is working. Okay PHP 4.3
2)faster.php (test to makes sure php is working) Okay
I have tried the following set ups / combinations:
3)faster.htm normal auction template, where content should go I have inserted <?php include 'fasterinsert.php';?>
4)faster.htm normal auction template, where content should go I have inserted <?php include 'fasterinsert.html';?>
5)faster1.htm normal auction template, where content should go I have inserted <?php include 'fasterinsert.inc';?>
6)faster1.htm normal auction template, where content should go I have inserted <?php include 'fasterinsert.htm';?>
7)fasterinsert.html insert to replace content in auction template
8)fasterinsert.php insert to replace content in auction template
As you can see there are no restrictions on me using .htaccess.
You can add an .htaccess file if you want, but the former set of directives are redundant (.shtml files are already parsed as SSI), and the latter set just won't work. (not sure what this means)
Changed .htaccess.txt to .htaccess tried chmod to RW/R/R also left it blank, but still I can not get the file fasterinsert.php or .html to appear in any of the files listed above.
PLEASE, PLEASE what am I doing wrong? It has taken me three days to try and crack this but it will be worth it.
Hope you can help
[edited by: coopster at 4:13 pm (utc) on Aug. 21, 2004]
[edit reason] linked up url reference [/edit]
If you can remember back to the very beginning of my first thread you may recall that I use auction templates, these are loaded into the various auctions sites and the inserts are on my home server it’s a question of size?
So I can’t have the inserts on the same server, I can’t use php pages as it is only the body / table that’s loaded in to auction site.
Robert
it’s a question of size?
You know, even with included files, you are still going to be serving up the same size file to the browser from your server, so, unless I am misunderstanding, you really have two issues going. First, getting a file with a
.htmextension to parse as PHP. And the second seems as it may be more of a design issue.