|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^2: where to place the .pl fro cgi scriptby dorward (Curate) |
| on Oct 25, 2006 at 09:40 UTC ( #580524=note: print w/ replies, xml ) | Need Help?? |
|
No, that's a common configuration, but not universal, on my system this is called "cgi" not "cgi-bin". The precise answer is the one you get after reading the documentation for your webserver.
On my system 'public_html' is 'pages', and 'cgi' is a sibling, not a child. You shouldn't have to "look around for it" though, the aforementioned documentation should tell you.
Hopefully the system will be set up so that world doesn't need access and you can limit execute permission to the group.
Although hopefully you are using sftp, rsync over ssh, or some other means of transfering files that doesn't result in passwords being sent in clear text.
Would it qualify as a CGI script if it didn't output a Content-type header? Either way, printing out the content-type directly instead of using a module (such as CGI.pm) probably isn't the way to go.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||