SSI Problems - executing a cgi script via ssi

They have: 6 posts

Joined: Aug 1999

I am trying to add a server side include into my web pages the executes a cgi script. The cgi script is designed to display to display a customers current shopping cart total and links to the checkout. I know that the cgi script is running properly because when it is called in the browser directly it works and displays the correct information.

The problem is that when the cgi script is called through ssi, it will only display "[an error occurred while processing this directive] " My server does accept ssi because I'm already uiing it on other pages, just not to execute a cgi script.

Any help please,

Brian
LotionBarn.com

They have: 5,633 posts

Joined: Jan 1970

Please give me/us the following info:

- Current SSI tag you are using
- Full path to the shtml file
- Full path to the CGI file

Possible problem: Incorrect SSI tag.
Solution: use the exec tag, which looks like this:

<!--#exec cgi="/cgi-bin/yourscript.cgi"-->

They have: 6 posts

Joined: Aug 1999

Thanks for the help.

I was using the exec tag, but I was not getting the ssi tag directed correctly. I had it directed using the full path, which all it needed was <!--#exec cgi="/cgi-bin/cgiscript.cgi"-->. I had tried countless directions, but finally got it.

Thanks for the help,

Brian
LotionBarn.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.