Hi everybody. I'm new here and a beginner on PHP scripting. I'm trying to write a php code
in order to do this:
1. start downloading a file from an HTTP server (an address like this:
http://free.com/get/0dw0bs/my_movie.flv). The file has about 500 Mb. The file is not on my
website host, it's on a different host.
2. the file to be downloaded on my webserver on my folder named "videos" with a name like
this: my_movie_id.flv where id is a number that is incremented everytime the page is
accesed (this will be stored in mySQL database).
3. during download I want to be able to use my_movie_id.flv for streaming and if the page
is changed or the browser is closed I want this file to be deleted from my webserver.
I've tried and studied php codes for 2 weeks now and I haven't been able to make it work.
I've write some php script but none of them downloaded all of the movie (only 10kb or
something like that).
If anyone can help or give me some ideas how can this be done I'll really appreciate it.
Thanks a lot for your time to read this.