Forum Moderators: coopster

Message Too Old, No Replies

Parse HTML or not

What am I doing wrong?

         

Essential IT

1:11 am on Aug 20, 2004 (gmt 0)

10+ Year Member



Hi Guys (oilman & henry0)
(Help keep my sanity [webmasterworld.com] 16-08-04)
Well I have tried what you had suggested, but to no avail, this may go on a bit but I don’t want to miss anything out.

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]

coopster

7:34 pm on Aug 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Is it really necessary you get the info from a different server? If not, why not just copy the
binoinsert.htm
file to your new server, same directory, and keep the SSI as is?
<!--#include virtual="inserts/binoinsert.htm" -->

Essential IT

9:03 pm on Aug 24, 2004 (gmt 0)

10+ Year Member



Coopster

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

coopster

11:14 pm on Aug 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member




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

.htm
extension to parse as PHP. And the second seems as it may be more of a design issue.
This 33 message thread spans 2 pages: 33