• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Calling CGI scripts with SSI

Maverick

New Member
I'm trying to insert a cgi guestbook into my site and it doesn't seem to be working. I just keep getting [an error occurred while processing this directive] messages. I'm using the SSI command within Dreamweaver if that's any help. Does it matter if I use the virtual or the file option?
 
Thanks for the reply, but it's still not working. No errors this time but no guestbook either. Do I have to edit my .htaccess file as well?
 
Why can't you just link to the cgi prog and place whatever you need into the html of the script?
 
oops, i left the pound sign out up above, this should work:

Code:
<!--#exec cgi="program.cgi" -->

if that doesn't work, i don't know what will.
 
On my domain, I have to use:

Code:
<!--#include virtual="whatever.cgi"-->

Try it if all else fails, I suppose :)
 
well yeah, i use that too for everything else, but i use the #exec cgi command for including cgi scripts.
 
Ah ha so that was the problem. It's working perfectly now, thanks. As it turns out (apart from the missing "#") my cgi-bin is knackered. I've got no idea how a cgi-bin can work fine one minute and then be completely useless the next but there you go. In the end I changed hosts and everything worked fine :)
 
Hmmm looks like I spoke too soon - now it's not working again. Does anyone know why I'm getting - [an error occurred while processing this directive] messages? Do I have to the file type cgi to my .htaccess file? Is there anything I should be doing?
 
Back
Top