Automation Query

Links for php scripts

Moderators: gesf, Michalio

Post Reply
ICHaps
New php-forum User
New php-forum User
Posts: 4
Joined: Sun Nov 27, 2022 1:34 am

Hello.

Could anyone, please advise me, on how to write sum automation code for my site?

I've created a piece of code which will send email to the site's members. However this will only work when the site is visited.
I would like to automate this so that every 2-5 minutes (for example, the any messages are waiting to be sent, are sent.

Thank You.
User avatar
Michalio
Moderator
Moderator
Posts: 339
Joined: Sun Jul 18, 2021 1:33 pm
Location: Poland

Use cron:
https://opensource.com/article/17/11/how-use-cron-linux
If you have shared hosting server the provider should have any tool to set it up. For own servers the task shoudl be even easier
Free coding lessons: https://php-forum.com/phpforum/viewtopic.php?t=29852
ICHaps
New php-forum User
New php-forum User
Posts: 4
Joined: Sun Nov 27, 2022 1:34 am

Hello Michalio.

Thank you for your reply.
Post Reply