Feature requests » adding to html

added on Mar 16, 2007 by steve
hello, i am tring to make it work with html, i don't really want to switch to php. and don't know how to parse. can
anyone help me make it work with html index page please
added on Mar 17, 2007 by v0id
Hi there Steve.

Sorry about the late reply.

The most simple way to make it work without switching to .php or .shtml files, is to make you web server software handle
.html files as it would do with .php files.

I assume your web server is Apache, and you can create and use .htaccess files on your host?

If so, create a .htaccess files (it must be called ".htaccess") with the following contents:

AddType application/x-httpd-php .php .html

Thats it, place this file in the folder of your website and, hopefully it should do the trick.

What it does, it instructs the web server to use .php and .html files as PHP scripts.

Now you can just include the file as it was in a PHP file with the path from your category <?php include(
...../data/output/1001 ); ?> or however it is on your setup.

Let me know if you have any more questions, or if that did the trick.

- v0id
added on Jul 6, 2007 by steve
thanks that did work, but now i am using a different program that requires me to switch over to .shtml
I changed the index.html to index.shtml and changed the include code, but now it says that [an error occurred while
processing this directive]. what should i do.
added on Jul 6, 2007 by v0id
Try have a look in the error lof for any clues on whats wrong.
Most likely it's a problem with the path, sometimes you cannot use SSI on the full path, and need to use a relative path
instead, like so
<!--#include file="./linkex/data/output/1001" -->
or whatever is the installdir and output ID on your system

- v0id
added on Jul 7, 2007 by steve
thank you, that has corrected the problem
added on Jul 7, 2007 by v0id
great!

- v0id

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.