View Full Version : Calling CGI scripts with SSI
Maverick
April 10th, 2001, 15:19
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?
keith
April 10th, 2001, 16:35
<!--exec cgi="program.cgi" -->
Maverick
April 10th, 2001, 17:53
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?
cowax
April 10th, 2001, 18:26
Why can't you just link to the cgi prog and place whatever you need into the html of the script?
keith
April 10th, 2001, 19:06
oops, i left the pound sign out up above, this should work:
<!--#exec cgi="program.cgi" -->
if that doesn't work, i don't know what will.
Niaad
April 10th, 2001, 21:41
On my domain, I have to use:
<!--#include virtual="whatever.cgi"-->
Try it if all else fails, I suppose :)
keith
April 10th, 2001, 21:52
well yeah, i use that too for everything else, but i use the #exec cgi command for including cgi scripts.
Maverick
April 14th, 2001, 13:18
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 :)
Maverick
April 14th, 2001, 15:12
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?
Maverick
April 15th, 2001, 04:54
Don't worry about it, I figured out what I was doing wrong :)
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.