php - Check when a task has been completed N number of times? -


i running script perform task n number of times in php (downloading , converting file format n files inputted in form)

how whould check when has finished files?

my approach this:

  1. create text file number 0

  2. for each conversion finished add 1

  3. check if number in .txt file equals n-1

is reasonable, or there way of doing don't know of?

thank you


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -