cron - Alternative to the sleep command in PHP -
i want display position of selection of boats on page using google maps , php. receive position data use winlink api, specific boat (by callsign) position data returned via rss.
once per day, cron-job runs script, position 1 boat after requested , saved.
there sort of request limit , don't want overuse winlink server, have spread requests on time. currently, use sleep
command in php, more boats, i'm facing issues max. execution time on host. use set_time_limit
, thats temporary solution.
i thought using separate cron per boat, unfortunately have access server via imscp (a browser-based config) can add/edit cron-jobs manually, , list of boats should editable via php, don't know how many boats there might in future.
is there better way want?
Comments
Post a Comment