Continuous server-side script execution?

Hey everyone,

I'm trying to set up a script that runs 24/7 on my server. I need it to automatically send an email every minute, without having a page open in a browser. I'm hosting with GoDaddy and usually work with PHP, but I'm not certain if it's the right option for this task.

Could someone suggest a technology or method to accomplish this? I'm open to alternatives if PHP isn't a solid choice.

Thanks so much for your help!

For continuous server-side execution, I’d recommend looking into a daemon process or a background service. These are designed to run indefinitely without user interaction. While PHP can be used for scripting, languages like Python or Node.js are often better suited for long-running processes. They offer better memory management and more robust libraries for task scheduling.

Consider using a message queue system like RabbitMQ or Redis for more reliable and scalable email dispatching. This approach can help manage high-frequency tasks more efficiently and reduce the risk of being flagged as spam.

Lastly, check your hosting provider’s policies on background processes. Some shared hosting environments restrict these types of operations, so you might need to explore VPS or dedicated server options for full control.

yo maya, cron jobs r def the way to go for this. just set one up to run ur php script every minute. but heads up, sending emails that often might get u flagged as spam. maybe consider less frequent updates? godaddy should support crons, but double-check their docs to be sure.

hey, u ever try a cron job to run ur php script? i found it works wonders for scheduling tasks. curious, do u think hosting limits might get in the way? would love to hear if any other method made more sense.