Home > Archive > PERL Beginners > January 2007 > writing a file in IIS
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
writing a file in IIS
|
|
| Marcos Rebelo 2007-01-26, 6:59 pm |
| Hy all
This isn't a 100% perl question, but I shall not be the first.
lets see what I did:
- I install IIS (it is serving HTML pages)
- I install ActivePerl (it is serving pl pages)
- I tryed to write a file in the disk from the CGI script and I got a
Permission denied.
Script code (copy past from the CGI doc)
########################################
############
use CGI qw/:standard/;
print header,
start_html('A Simple Example'),
h1('A Simple Example'),
start_form,
"What's your name? ",textfield('name'),p,
"What's the combination?", p,
checkbox_group(-name=>'words',
-values=>['eenie','meenie','minie','moe'],
-defaults=>['eenie','minie']), p,
"What's your favorite color? ",
popup_menu(-name=>'color',
-values=>['red','green','blue','chartreuse']),p,
submit,
end_form,
hr;
if (param()) {
print "Your name is",em(param('name')),p,
"The keywords are: ",em(join(", ",param('words'))),p,
"Your favorite color is ",em(param('color')),
hr;
}
#open(my $file,
"> E:\\Projects\\gwt\\condominios\\bin\\com
\\mycompany\\public\\pl.txt");
open(my $file, ">pl.txt") or print "Can't start caesar: $! <br>";
print $file ("xxxxxx: ". time());
print "xxxxxx: " . time();
close $file;
########################################
############
Probably I need to do something in the IIS server,
but what?
Thanks for any help
--
Marcos Rebelo
http://oleber.awardspace.com/
| |
|
|
| nobull67@gmail.com 2007-01-31, 6:59 pm |
| On Jan 26, 7:32 pm, ole...@gmail.com (Marcos Rebelo) wrote:
> Hy all
>
> This isn't a 100% perl question,
It's not even a 0.001% perl question.
> lets see what I did:
>
> - I install IIS (it is serving HTML pages)
> - I install ActivePerl (it is serving pl pages)
> - I tryed to write a file in the disk from the CGI script and I got a
> Permission denied.
so...
grant permission!
> Probably I need to do something in the IIS server,
>
> but what?
Er, look to see what user ID it runs as.
|
|
|
|
|