Simple PHP download script

In Progress Posted Jul 28, 2015 Paid on delivery
In Progress Paid on delivery

I need very simple PHP script that will download a file from given link.

It should look like this:

1. We have a database table named example_table with example fields - id, download_link, local_file

2. Script should execute SQL Query for example "SELECT download_link FROM example_table WHERE download_link <> '' AND local_file = ''

3. From the SQL results we start downloads.

4. Perfectly the script should be able to start many downloads at once (configurable in a config file), for instance 3 files at once.

5. Script should show the download progress dynamicly (progress bar)

6. When any of the downloads is done it should execute SQL update query to put local file name to local_file field. Also it should execute the SQL query again to update results (need to check if given results include files that already are being downloaded to avoid duplication of downloads).

7. If download has failed we should handle the exception - it's up to you, if script is able to continue download than download should be retried. If not - local file should be deleted and waited for download again later.

8. Script should be able to run in background, so downloader does not need the web interface to be on all the time (any method would be fine, server is Linux-based so solutions like Cron or any other are available).

MySQL PHP

Project ID: #8163047

About the project

4 proposals Remote project Active Jul 28, 2015

Awarded to:

usmanjaved

I am will for this job & I shall be very much full to you for considering me. I will give you minimum time frame.

$25 USD in 1 day
(11 Reviews)
4.9

4 freelancers are bidding on average $31 for this job

softtechsurat

Hello sir/madam, we have read and understand your requirement and very much confident that we can complete this project within low budget and less time . Give us chance to serve you better Looking forward to be More

$50 USD in 2 days
(17 Reviews)
4.6