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 - Feed FileReader from server side files -

c++ - What's the differece between of link to a dynamic file and as a input object? -

Android Unit Testing / Mockito: android.location.Location not mocked -