//flex table opened by JP

Click to See Complete Forum and Search --> : server side Includes


kilroy
07-13-2001, 12:16 PM
Howdy:
Problem
I am trying to serve a page, using a remote source.
what I have is :
Apache server:
.htaccess with the following:

Options Indexes FollowSymLinks Includes
AddType application/x-httpd-cgi .cgi
AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm


And my .html with the include:


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><!--#include file="http://***.***.***/****" --></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<p>  </p>
</body>
</html>


and it does not work
{*=the server name and page.}

Anybody out there able to shed some light?

Thanks
Kilroy

Ps the error is get is :
[an error occurred while processing this directive]

golfcart
07-13-2001, 02:14 PM
Try this line instead:
<!--#include virtual="http://***.***.***/****" -->

kilroy
07-13-2001, 03:38 PM
Do I need to add anything to the htaccess file?
I put virtual referance in there, but same error
[an error occurred while processing this directive]

Thanks for replying
Kilroy

Dovaka
07-13-2001, 05:07 PM
im havingthe same problem with my page ive tried tons of different tags and no luck

Cabinetmaker
07-14-2001, 01:09 AM
I don't believe you can use the "http://www.xxx/......

Instead of <!--#include virtual="http://***.***.***/****" -->

try <!--#include virtual="/your.txt"-->
or <!--#include file="your.txt"-->

If you are trying to include a file from another site then you will have to use a script such as The Executer (http://smartcgis.com/executer/)

And I am sure you know this...but, on some sites you might have to name the ssi page with a .shtml filename extension.


[This message has been edited by Cabinetmaker (edited 07-14-2001).]