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!

HTML and C++ with CGI

Status
Not open for further replies.

Zas

Programmer
Oct 4, 2002
211
US
I find it tiresome and tedious to convert entire pages of html into CGI with all the slashes and such, especially when creating new layouts and so so. So is it possible to run a .pl or a .cgi script inside of an .html ?

Also is it possible to run a .exe inside or a .pl or .cgi on the web? Just to run a simple calculator or something. Or is that not possible and the only reason java is here?

Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
No wonder I thought I had made a typo. This forum is putting a ";" near the end of the SSI tag I've given you. It obviously don't go there. This is obviously some bug in the forum script... unless it's a feature I'm unaware of?
 
thanks for the quick response.
so use that code, only take out the semicolin, and take out the space inbetween --> and "? I'll try it all ways. Thanks! ~Z

Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
Didn't work... o grrr..

Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
Did you check with your webserver's documentation? This tag is a "typical" tag for an Apache server. Also, some servers are configured so you have to have the documents renamed with a .shtml extension.
 
You tipically have to change the ending of the page to index.shtml or someother_name.shtm


haunter@battlestrata.com
 
Doh! Wullie is right. Can't put the domain name in the SSI tag. Stupid me. Been so long since I've made SSI scripts. Sorry if that stumped you for a while. :/
 
Oh oh! that helps!!

Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
E gad. The tag works now, but it has some error opening? I get my ENTIRE script, but it does not open correctly. It just posts it like wordpad would.

Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
Hi mate,

If you see the source of the script, then chances are that the file is not in a directory that is setup to execute scripts.

You can either try the following instead:

<!--#exec cgi=&quot;/path/to/script.pl&quot; -->

or move the file into the cgi-bin on whatever directory your server uses for scripts.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top