Pettit, Paul wrote:
Hi all,
First time posting here after a long time lurking. I have a problem that
though it seems it should be simple has proven elusive to me for a solution.
Up till a few weeks ago all my code had been running on Linux boxes. I've
never had a problem with any of them. Sadly our main web server suffered a
catastrophic failure and because we (the IT staff) have been told we would
have to move to a 100% Windows environment I moved all my code to a new(er)
Windows 2003 Server box. This server is running IIS 6 + ActiveState Perl
5.8.8 and PHP 4.4.2.
All the code transferred has worked perfectly or with minor tweaks (yeah
Perl portability!) except one. That one is our B2B program and is a critical
pieces of programming however it's old and uses files to keep track of data.
I planned on rewriting it but because of other situations I just have not
been able to spare the time. The situation is that program in question can
write and read its data files fine but it can not delete (unlink) them. I'm
not a Windows expert but we do have someone with more experience than I and
he's as stumped as I am. We've even gone so far as to give Full rights to
the directories in question to Guests, Everyone, Iusr_, .\Users, as well as
to Iwam_, nothing works. We even moved the directories out of the web site
tree and assigned the above full rights yet still it can't delete any files
that it creates.
Just to show I'm not trying to do something arcane, here is the (simple)
command I'm using:
unlink ($ticket_file_name) || &err_trap("Cannot delete
$ticket_file_name!\nMessage: $!\n");
With the above I get this:
Program error: Cannot delete C:/wwwdata/tickets/570439140! Message:
Permission denied
I'm at a loss so I ask for any suggestions. I think I've tried just about
everything but some how I feel that the answer is so obvious that I'm
totally missing it.
Thanks for any help in advance.
Paul Pettit
Opening thought - those files the script is reading and writing... Is
it _closing_ them when done?
- Lynn.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs