I don't have any code to share as I'm very unsure where to start with this. But basically I would like to send an email using PHP once a day.
I.e. it will run a piece of script automatically (without a browser / front end) on the server. It will query a MySQL database for any changes, if there are any changes then I want PHP to send an email.
I'm familiar with querying and sending emails, I'm just not sure how to do this automatically without user input/ POST request etc. Can I make an infinite loop or will that block all other scripts on my server? Can this be done in PHP or should I use another language?
If anyone can point me in the right direction? Thanks in advance.