PDA

View Full Version : CGI Question (from a n00b)


Craf
06-16-2002, 07:33 AM
Might i ask since I'm very new to the Perl/CGI business, how can you test/debug or whatevr a Perl/CGI script w/o uploading it up to your server? I'd like to run it probably in a windows(95/98/ME) platform.

Should you purchase a software of something? if there are free stuff out there can any of you direct me?

Thanks a million! ..

inkedmn
06-16-2002, 02:42 PM
you can download and run apache webserver or most windows platforms, and just run your cgi program from within that. (you might need some perl modules, i'm not entirely sure how something like that would work).

www.apache.org

Strike
06-16-2002, 05:09 PM
You can also just run the CGI script as is and see if the output is as expected. Something like:


someone@somehost% perl myscript.cgi > myscript-output.html

And then view the resulting webpage with a browser

Craf
06-18-2002, 06:14 AM
Originally posted by inkedmn
you can download and run apache webserver or most windows platforms, and just run your cgi program from within that. (you might need some perl modules, i'm not entirely sure how something like that would work).

www.apache.org

perl modules? where can i get that?


Strike: Should that be in my host or my windows?

Strike
06-18-2002, 07:32 AM
Apache comes with mod_perl, I believe. It should come with all you need.

Craf, what are you asking? What is "my host" and "my windows"? It shouldn't matter where you run the script and view the output, unless your versions of Perl greatly differ from the machine you test it on and the machine you host the CGI on.

Craf
06-19-2002, 06:44 AM
ic.. so i can have it run in my windows?

Strike
06-19-2002, 10:28 AM
Uh, can you PLEASE answer my question?

stuka
06-19-2002, 01:55 PM
Craf - to run perl code under Windows, you'll probably want to get ActiveState's ActivePerl. http://www.activestate.com/Products/Download/Get.plex?id=ActivePerl is the URL for the download. I think this answers the question you're asking - if not, let me know where I went wrong.

Craf
06-21-2002, 08:28 AM
Sori Strike, i think we didnt understand each other. fortunately Stuka is here. and yes! he did answer my question. sori if we had to go to all this confusion.:)

Thank you all very much... *bows like Japanese*

ThurberMingus
06-25-2002, 09:43 PM
Don't know if this is too late, but just to echo what has already been said, as well as give some other info:

Download Crimson Editor (www.crimsoneditor.com) and install ActivePerl. On the Crimson Editor website there is information on configuring CR to work with ActivePerl, giving you a sort of Perl IDE.

For general info, Crimson Editor can be configured with many other language interpreters/compilers and used as a decent IDE for FREE! It does keyword highlighting for many languages, and I remember that you can even write config files so that it will highlight words according to your liking. (I suppose this would be fun if you wrote your own language and compiler to go with it!)

Craf
07-12-2002, 09:15 AM
I'll try your suggestion ThurberMingus..