1
I’m designing changes and routines in a web application created in PHP and Cakephp, in which case one of the routines would be a Component run every 15 days , to update a file. html As in PHP I check if it was past X days of the last execution of a certain routine?
I thought of the following algorithm, but is it the 'elegant' way of checking? , how to encode the algorithm?.
1- take the saved milliseconds in a text file. 2- take the current milliseconds. 3- if you have nothing in the text file, or the current milliseconds are greater than or equal to, the milliseconds saved in the file plus the value of X days in milliseconds. 4-save current milliseconds to text file.
CronJobs
+1– gpupo