I have discovered that software I recently installed on my website creates small log files. I know how create cron jobs, but I'm not good at creating php from scratch.
Every time the software runs it creates this log file:
do_job.php.N
This is where N= a number that increases each time the job runs creating multiple log files ie. do_job.php.1, do_job.php.2, do_job.php.3 ...
I want to delete all the log files in the directory that are closed ie. delete do_job.php.*
Could someone help me with the php to do this? Then I'll put it into a cron.
Thanks.