PDA

View Full Version : run CGI without setting up a server


gogokick
07-19-2005, 01:26 AM
I went to CGI 101 and realized that I need to set up a server and install Perl in order to run CGI program on my PC. So I was wondering, is there other ways around it? Like getting a complier instead of setting up a Apcahe server or whatever?

netroact
07-19-2005, 06:29 AM
If you have a website, you probably have Perl already installed on your hosts server. CGI stands for Common Gateway Interface. This is an interface that enables you to use different languages, including Perl, on you website. If you have a remote host that hosts your website for you, you won't need to install it on your PC.

If you just want to run Perl offline on windows, you could just install something like Indigo Perl:

http://www.indigostar.com/indigoperl.htm

I haven't used it in awhile but it installs Apache and Perl on Windows. It does all the work for you. I think all I had to change was the config file to localhost.
Just a suggestion. Hope it helps!

andyede
07-19-2005, 12:22 PM
is this of any interest?

http://www.indigostar.com/perl2exe.htm

Aradon
07-19-2005, 01:13 PM
I've used ^^ program to transfer a perl program from one computer to another, but you don't have to have their perl to do it or anything. It imports the entire perl library and makes it into an exe..

kinda like java only it probably still runs faster :>

gogokick
07-20-2005, 12:04 AM
Thank you guys for the replies, maybe I misunderstood CGI by thinking its a language. Okay, so I can just write some CGI program in Perl , save it in NotePad as .cgi and then run it on a website that supports CGI, right?
I will try that, haha.

FishMonger
07-20-2005, 12:32 AM
Also, it needs to be placed in a proper directory and permissions set where the web server has access to execute it; normally/often it's put within the cgi-bin directory.

gogokick
07-20-2005, 03:21 AM
Okay, I will do that too. Just a second thought, how many people can access the website in the same time? Is that something to do with the "share up to XXGB?" or "bandwidth"?

Anarchist
08-07-2005, 08:22 PM
is there other ways around it?

Yeah install Dzsoft Perl editor Here (http://www.dzsoft.com/perl-editor.html) run the scripts from it, ya gotta install Perl though.