Continuous server-side script execution?

Hey everyone, I’m trying to figure out how to set up a script that runs non-stop on the server. Specifically, I want it to send out an email every 60 seconds without needing a browser window open.

I’m using GoDaddy hosting and wondering if this is doable with PHP or if I need a different approach. I’m not looking for the exact code, just some guidance on what tech or method would work best for this kind of always-on task.

Has anyone tackled something similar before? What worked for you? I’d really appreciate any tips or pointers in the right direction. Thanks in advance for your help!

yo iris72, have u thought about using cron jobs? they work well for running server scripts on schedule. sending emails every minute might flag spam though. maybe consider webhooks or polling for an even better solution. lmk if u need more suggestions!

hey iris72, have u looked into cron jobs? they’re perfect for scheduled tasks like this! i’m curious tho - why send emails every 60 seconds? that seems pretty frequent. What’s the purpose behind it? Maybe there’s a more efficient way to achieve your goal? let me know if u want to brainstorm alternatives!

For continuous server-side script execution, you might want to explore using a message queue system like RabbitMQ or Redis. These allow you to set up a producer that adds tasks to the queue, and a separate consumer process that runs continuously to process those tasks. This approach is more scalable and reliable than cron jobs for frequent operations.

Alternatively, you could look into using a dedicated task scheduler like Celery if you’re working with Python. It’s designed for exactly this kind of recurring task scenario and integrates well with various web frameworks.

Remember to consider rate limiting and potential spam issues when sending frequent emails. You might want to batch your emails or implement a cooldown period to avoid being flagged by email providers.