Download file to server

Asked

Viewed 196 times

0

I have the URL from where the file is downloaded. By clicking on it, the file is downloaded directly, without at least accessing and clicking on some link.

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

The file is in . csv format.

I would also like to point out that being a contracted hosting(Hostinger, Locaweb, etc...) I don’t have full access.

The main problem would be the downloadable script.

1 answer

0

Looks for crons, serves for php scripts....

0,10,20,30,40,50 * * * * /seuarquivophp.php
  • thanks for the answer, but that’s not exactly the main problem. I edited the question to make it clearer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.