Simple CRON script for wget command on PHP

05 May 2020

Code:

// var/www/u04753237/data/www/site.com/export/price/cron.php

<?php

// Download
exec ('wget -O price.xls -x https://www.dropbox.com/s/23r22r2sdv/price.xls?dl=1'); 

// Mooving
exec ('mv price.xls ./www/site.com/export/price/');

?>

Cron command:

/opt/php/7.1/bin/php /var/www/u04753237/data/www/site.com/export/price/cron.php