For Programmers: Free Programming Magazines  


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/
marcos rebelo

2007-01-27, 3:58 am

Windows XP Pro and IIS 5.1 (the one comming in the Windows XP CD).

Please help, I really need this on monday.


Note: I'll just contact you toorow


Thanks
Marcos

On 1/26/07, Bill Jones <chasecr.systemhouse@gmail.com> wrote:
> [off list]
>
> On 1/26/07, marcos rebelo <oleber@gmail.com> wrote:
>
>
> Is this IIS6 and W2k3 Server?
> --
> WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/
> http://pgp.mit.edu:11371/pks/lookup...&fingerprint=on
>



--
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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com