php - passing previous day to crontab argument -
i have php script want run every day @ 5am. script works $_get['datevar']
i create cronjob call following script
var/www/somedir/myscript.php&datevar='previous_day'
where previous day means "yesterday".
i've heard arguments :
var/www/somedir/myscript.php datevar='previous_day'
but cant make work.
previous day has in format "yyyy-mm-dd"
can provide me hint?
Comments
Post a Comment