Download file to server [duplicate]

0

I own the URL where the file is downloaded from. By clicking on it, the file is downloaded directly, without even accessing and clicking on a link.

That said I need a way to automate this task with PHP. A script that when downloaded downloads this file to a certain folder on the server every X minutes. Any suggestions?

The file is in .csv format.

I would also like to point out that because it is a contracted hosting (Hostinger, Locaweb, etc ...) I do not have full access.

The main problem would be the download script.

    
asked by anonymous 19.07.2015 / 01:07

1 answer

0

Search for cron jobs, for php scripts ....

0,10,20,30,40,50 * * * * /seuarquivophp.php
    
19.07.2015 / 01:18