waris has asked for the wisdom of the Perl Monks concerning the following question:
I'm a novice. The server I'm dealing with is WinNT using Xitami (no, I don't have a choice about this). I have a perl script running when a form is submitted which includes a file upload function from the user. Since the files can be very large, the perl script can be open & in use for several minutes. I have to wait until the file is finished uploading in order to finish manipulating the data and return feedback to the user before closing the script. It works fine for one user, but not if a second submits before the first one is completed.
I have seen a lot of mention about 'forking' but understand it won't work in the Windows environment. Is there a simple solution to this that works with Windows? Two related questions: can I run a Perl script when an HTML page opens (such as onLoad). Similarly can I run a Perl script when a page closes? if so, any info on how would be appreciated. Thank you.