View Full Version : CGI callup like SHTML ???
Anayet
December 10th, 2001, 18:01
Hi, how do you call up a CGI page? Is it like shtml, if not how?
What command do i use?
I have a cgi script which is more like a page and i want it to be side by side with a shtml page ...
Anyone understand what i'm talking about, if not just tell me, i can handle it
Thanks
Cyber
December 10th, 2001, 18:27
you want it side by side with a shtml page? a shtml page is a PHP page with a diff. extension. If you want to call a CGI from a form, put it under the "action" part of <form.> (<form action="bvvv.cgi" ...)
otherwise, i dont know.
Dusty
December 10th, 2001, 19:16
a shtml page is a PHP page with a diff. extensionSSI isn't PHP by another name.
What do you mean the script is like a page? It prints out a page? Then just go to http://www.whatever.com/cgi-bin/script.cgi in your browser, no special command is needed. I'm not certain what you mean by side-by-side with another page... do you mean you want to call a CGI script from a webpage using SSI? That's not a problem, <!--#exec cgi="script.cgi"--> is what you're looking for.
Cyber
December 10th, 2001, 19:20
sorry, i wasnt thinking--thats phtml right?
Dusty
December 10th, 2001, 19:22
Yeah.
Anayet
December 10th, 2001, 20:14
Yep, thats what i'm looking for dusty:), i have a question though,
If the shtml is in the root directory and shows up as:
http://www.domain.com/page.shtml
and the cgi script is here:
http://www.domain.com/cgi-bin/folder/script.cgi
then how will the ssi/shtml link be?
Will it still be <!--#exec cgi="script.cgi"--> or does it have to changed, if so to what (because i am having problems :()
Thanks
Cyber
December 10th, 2001, 20:45
it needs to be changed to "cgi-bin/folder/script.cgi" (or whatever the path is)
Anayet
December 10th, 2001, 20:57
Sorry what i meant to say was this (different folder):
If the shtml is in the root directory and shows up as:
http://www.domain.com/public/page.shtml
and the cgi script is here:
http://www.domain.com/cgi-bin/folder/script.cgi
Cyber
December 11th, 2001, 06:56
i think you can do:
../cgi-bin/folder/script.cgi (with the 2 periods)
or just http://www.domain.com/cgi-bin/folder/script.cgi
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.