the script will not run on my web-server (hosted on Windows 2000) so long as the 'T' for taint checking exists on the shebang line.
This is an IIS configuration issue. Inside of IIS, there's a thing called a "script map", which is a mapping of file extensions to command templates. This map determines what script to invoke to handle CGIs, depending on their extension. Typically, there'll be an entry that reads
".cgi" "c:/perl/bin/perl.exe %s %s"
This is where you need to add the -T. Unfortunately, it's al all-or-nothing affair. If you add -T here, then all .CGI scripts are now taint-checked, whether they're ready for it or not.
This is one of several reasons why IIS on a shared web server sucks.
A typical workaround is to add a new script type (e.g, ".cgx"), and set up the script map to look like
".cgx" "c:/perl/bin/perl.exe -T %s %s"
The script map is accessible through the IIS administrative control panel.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.