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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling xyz.cgi in html, beginner

Status
Not open for further replies.

confuse

Programmer
Dec 3, 2000
9
MY
I am using Sun web server. I have my cgi file in cgi-bin directory and would like to call this files to be executed in the html files. As far as i know , this would work:
<!--exec cgi = &quot;cgi-bin/xyz.cgi&quot;--> but where shall i place it within <HTML>, after <html>, before <html> or is there some other way to call xyz.cgi file. Please help.
 
The [tt]<!--exec cgi = &quot;cgi-bin/xyz.cgi&quot;--> [/tt] is called SSI or Server Side Includes. In order for you to be able to use SSI, your server has to be able to support it.

You can place it anywhere in your html file. Keep in mind, that you will have to give your file a .shtml or .stm extension so the server recognizes it as a SSI and not a regular HTML file.

Hope this helps,

-Vic

P.S. With questions like these, it is best to try out ways it might work and then coming to the forum saying this way does not work, how do I do it. Then we know you at least tried.
vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
i tried converting *.html to *.shtml my server can't recognise it. How do i know whether my server supports SSI or not. If not ,how do i get it?
 
Ask your system administrator.

Ask him if you have it installed on your server, if not, to install it. What server are you running (Apache?)

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top