Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Novice trying to find my way

by graff (Chancellor)
on Sep 17, 2009 at 04:38 UTC ( [id://795770]=note: print w/replies, xml ) Need Help??


in reply to Novice trying to find my way

When you say:

I was successful with getting the following to appear in a browser;

Do you mean that the browser showed the entire script exactly as you posted it (including all the repetitions of "print" and all the quotes and dollar signs and "ENV{REMOTE_ADDR}")? Or do you mean that the browser actually showed "Hello World" as the title, and as a heading, and you saw an actual IP address (presumably 127.0.0.1)?

If the former, it means you don't yet have your IIS web server configured to actually execute perl cgi scripts. I don't really know about configuring IIS (I suppose you have to navigate a bunch of dialog windows and menus and crap like that), but in general, e.g. using Apache, there's a config file that you edit, and somewhere in there is a section about designating the directory where cgi scripts will be kept. (Don't they have Apache servers for windows?)

You want to make sure that only a specific directory (or small number of specific directories), which you manage and protect very carefully, are designated for storing executable cgi scripts. Then you put your cgi script in that directory, and type the url that corresponds to this path and script file into the browser, so when the server gets that url request, it runs the script, and sends the script output (the html data) back to the browser.

My apologies if you know all this already -- it wasn't clear from the OP how far along (or behind) you are.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://795770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found