Link to home
Start Free TrialLog in
Avatar of jeffreykwok
jeffreykwok

asked on

how to run CGI script without.......

dear sir....

i wanted to make CGI script but when i try to run it on the web... it show all the texts.... is the CGI script must be run under the \cgi-bin\ directory?

if that is the case what should i do, so i can test it my cgi script?

all is there a way to can the free cgi-bin?

thanks,
jeff.
Avatar of akf
akf

It really depends on how your webmaster has set up the web server.

Usually, /cgi-bin is a location the web server recognizes as containing scripts. It is also very common to use .cgi as a suffix to identify scripts. So, it would be worth changing the name of the script, for example call it "myscript.cgi" instead of "myscript.pl".

If you still see the text of the script, you need to ask your webmaster where you can put a CGI script.

for you to run a CGI script, you must have a web server that supports CGI installed on the machine. There are loads & loads of such free web servers on various platforms.

for the windows platform i would suggest Sambar web server (www.sambar.com). Besides being free, it also supports CGI scripting using PERL, C, C++. As if thats not enough, it very simple to install and needs little or no configuration before you code your first CGI!!
you also need the file to be set as executable.
ASKER CERTIFIED SOLUTION
Avatar of a198298
a198298

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if a198... has it right and it is just a matter that your current server does not support cgi then:
1) find out if it is an option
2) look for an ISP - IMHO virtual Ave is a VERY POOR choice