laziness, impatience, and hubris | |
PerlMonks |
CGI.pm uploads under mod_Perl on WinNTby ajt (Prior) |
on Nov 16, 2001 at 18:07 UTC ( [id://125816]=perlquestion: print w/replies, xml ) | Need Help?? |
ajt has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I've written a file upload script for a simple Content Managment System I writing. It's pretty normal stuff, CGI.pm, strict and warnings. All works okay except that my temp folder is filling up with CGItempXXXX files.
At the moment the script is running as a mod_Perl 1.26_01-dev PerlRun script on my Apache 1.3.20/NT4 box. I'm running Perl 5.6.1 ActiveState build 628, and my CGI.pm is version 2.78. I assume that as CGI.pm is loaded once into mod_Perl on start, rather than per CGI call, then, it's normal temp file destruction is failing to happen. As far as I can tell stopping and starting Apache does not delete the files either, though it does free any locks on them. I'm well aware that NT isn't the best possible platform, and that PerlRun is a bit of a hack for those of us not able to use mod_Perl "properly", but it's a bit annoying watching your temp folder fill up with files. Anyone else seen this? Is file upload not a wise thing to run under mod_Perl/PerlRun? I know when the script runs under CGI it's all okay. I checked SuperSearch, but as CGI, upload and mod_Perl are very common, it was hard to find anything useful from the very large number of hits returned. As ever humble thanks in advance. P.S. This is my 50th post. Thanks to everyone for all the answers I've had in the past, they've been very helpful.
Back to
Seekers of Perl Wisdom
|
|