Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI Tags Virutal include showing code not output

Status
Not open for further replies.

evans17

MIS
Feb 5, 2004
75
US
Question

The script runs fine if you execute it directly from the browser's Address bar:

but by using the following command:
<!--#include virtual="/cgi-bin/random-text.pl"-->

it outputs the code from the Perl script, rather than the text from the webpage

Does anyone know how I can get this running?
 
For CGI scripts, I believe you want to use the EXEC SSI tag, not include. I could be mistaken though.

- Rieekan
 
I changed my virtual includes to exec cgi

Now i get error 267. Whats that I have no idea I can't find anything on this error.
 
any text with error, try the webserver logs for more info, what webserver btw?

--Paul

Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
<!--#include virtual="cgi-bin/random-text.pl"-->
I changed to
<!--#exec cgi="cgi-bin/random-text.pl"--><br>
But looked up error 267 means invaild directory. (took a while to find error codes) and changed it to this.
<!--#exec cgi="/cgi-bin/random-text.pl"--><br>

Now everything runs happy again.

This is on IIS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top