Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    run CGI without setting up a server

    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?
    Last edited by gogokick; 07-19-2005 at 02:10 AM. Reason: second thought

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Posts
    368
    Thanks
    10
    Thanked 4 Times in 4 Posts
    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!

  • #3
    Regular Coder
    Join Date
    Sep 2004
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is this of any interest?

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

  • #4
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    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 :>

  • #5
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    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.

  • #7
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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"?

  • #8
    New Coder
    Join Date
    Oct 2003
    Location
    UK
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Yeah

    is there other ways around it?
    Yeah install Dzsoft Perl editor Here run the scripts from it, ya gotta install Perl though.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •