This works perfectly on my Red Hat Linux server. I'm using the 'xbithack' in my .htaccess file.
<!--#include file="show_this_file.txt" --> -- the SSI
Here's my location according to ws_ftp
public_html/folder1/folder2/my_htm_file.htm (this contains the SSI above)
I have a folder containing all my text files and it's located at--
public_html/text_files_folder
From within the htm file and the location above - public_html/folder1/folder2/my_htm_file.htm - I want to include an SSI that gets the file from - public_html/text_files_folder
I've tried these combinations (see below) and lots of others but nothing will get the file. I keep getting an "[an error occurred while processing this directive]" error.
<!--#include file="/public_html/text_files_folder/show_this_file.txt" -->
<!--#include file="/text_files_folder/show_this_file.txt" -->
<!--#include file="../text_files_folder/show_this_file.txt" -->
<!--#include file="../../public_html/text_files_folder/show_this_file.txt" -->
<!--#include file="../../../text_files_folder/show_this_file.txt" -->
<!--#include file="http://www.mywebsite/text_files_folder/show_this_file.txt" -->
Nothing works. Does anyone know how to do this? It seems to be a problem with others as well. I've done a search on the Internet and have seen no definitive answer. Does anyone know the correct syntax? Thanks.
As mentioned earlier, if I include the "show_this_file.txt" in the same folder as"my_htm_file.htm" this code works perfectly.
<!--#include file="show_this_file.txt" -->
Anyone?????