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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -