I have a web cam facing a view which has spectacular sunsets and sunrises. I want to grab a picture, at, say 20 minutes before sunset and 15 mins after after sunrise each day. I can use php/cURL to grab a picture from the camera, give it a name/date/timestamp and save it.
I can use php to get the sunset/rise times for my lat/long into variables, and can write a .txt file in the 'right' format that will overwrite the previous day's file/times with the new ones, but can't work out how (and where) to save the file so that it runs.
Every 'help' page I read says something like 'compose your cron file using crontab and your favourite editor'. I know that using crontab checks the syntax before saving, but assuming I have the right syntax can I just write my revised file to a specific location and avoid using the crontab/editor route?
My hosting company lets me write files using suphp if that makes any difference.
Thanks for your help.