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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -