Posted by Jonathan N. Little on 04/01/07 15:33
Poten Tate wrote:
> Jonathan, maybe this will explain it better. I posted this on another forum.
> Thanks.
>
> This works perfectly on my Red Hat Linux server. I'm using the 'xbithack' in
> my .htaccess file.
>
> <!--#include file="thefile.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" -->
from what you show this path should be correct, but the path may not be
your problem but your server may not allow direct includes for security
reasons and may require the "virtual" keyword. Mine does.
<!--#include virtual="../../../text_files_folder/show_this_file.txt" -->
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|