Perl Script to download file
I have a perl script that has become available through my Hosting company.
Its function is to send and email to a user and then redirects to a another page. And its has no problem with it. Code part which redirects to another page. Code:
#### Redirect if "next-url" is included Is that possible, in perl script.? Thanks in advance. |
It is possible, although I know _no_ Perl whatsoever. :) Take a look at this script I found:
Code:
Code from File Download Script blahblahblah... I _think_ that you'd need to put in something like the following: Code:
#Declare a variable M. |
Thanks J_K9 for your prompt reply.
Code:
#### Redirect if "next-url" is included I want it to do both the tasks at a time. i.e to start download a file first and then it should be redirected to other page. Any solution? |
I don't know any Perl whatsoever, so I'm sorry about that. I guess you could set a timer on the redirect so that it waits a while for the download to finish. (You could also supply a link on the page for the redirect to be made manually if it is taking too long because of the timer). I admit this way is very crude, but it's the only thing I can think of.
I really have a clue what functions are pre-available in Perl, sorry. You could always make the program go on a loop until it can 'see' that the file's been downloaded! :D Hehe.... <experienced Perl programmer please post below> :) |
Thanks J_K9 for your suggestions.
Ok i will look into other possible solutions before continuing this one. |
All times are GMT -5. The time now is 07:41 AM. |