Hey guys, quick question for ya.
I'm making a simple page that lets the user know he's being redirected to the file he's previously chosen.
For the redirection I used the syntax:
<meta http-equiv="refresh" content="5"; url=$url">
This works fine and it pauses for those 5 seconds before redirecting. Now, the problem comes in here... I'd like to (after redirecting) sleep for 30 seconds giving the user time to download the file, then delete it.
What's the best way to implement this? I tried using a fork, that forks.. sleeps.. deletes. But it keeps implementing the sleep before it redirects. So I end up staring at a notification of redirection for 30 seconds, then get redirected to a file that doesn't exist anymore. So i assume the fork isn't working.
Could I get code syntax w/ any ideas? Not even close to a perl expert.
Thanks.
I'm making a simple page that lets the user know he's being redirected to the file he's previously chosen.
For the redirection I used the syntax:
<meta http-equiv="refresh" content="5"; url=$url">
This works fine and it pauses for those 5 seconds before redirecting. Now, the problem comes in here... I'd like to (after redirecting) sleep for 30 seconds giving the user time to download the file, then delete it.
What's the best way to implement this? I tried using a fork, that forks.. sleeps.. deletes. But it keeps implementing the sleep before it redirects. So I end up staring at a notification of redirection for 30 seconds, then get redirected to a file that doesn't exist anymore. So i assume the fork isn't working.
Could I get code syntax w/ any ideas? Not even close to a perl expert.
Thanks.