Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.


In reply to Re: Novice trying to find my way by graff
in thread Novice trying to find my way by mortalhero

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-26 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found