PROBLEM - Include file. It will not work. Why??

liunx

Guest
Hello,

1. I have been attempting to use the following type of include,
<!--#exec cgi="/cgi-bin/comments.cgi"-->

2. I saved and uploaded the file (ASCII) with ".shtml" extension.

3. When I load the page I get,
[an error occurred while processing this directive]
<!-- m --><a class="postlink" href="http://www.jaja.f2s.com/test_qpc.shtml">http://www.jaja.f2s.com/test_qpc.shtml</a><!-- m -->

What am I doing wrong???

If my web site host does not allow "#exec cgi" type of includes, is there some way to work around it and still use the script??

Any and all responses appreciated

WPWP,

Try the following:


<!--#include virtual="/cgi-bin/comments.cgi"-->


Let me know if this does anything.

Regards,Hello,

Thank you for responding.

It did not work.

BTW, I placed a space between " and -->.

I tell ya, I am just exhusted working with this.

Thanks again for your help.

WPMake sure the permissions on your comments.cgi file are set to 755. Also, double check with your hosting company and ask if they have SSI enabled, if you're on a free host you might be out of luck...
 
Back
Top