I have a PHP code that send e-mails and I have a html page that contains a button to run the PHP script with post method. Is there a way to run this script without recourse to the html page every time i want to send the e-mails?
-
1This has already been asked. stackoverflow.com/questions/318361/timed-tasks-cron-like-in-phpcode4jhon– code4jhon2013-11-22 02:56:07 +00:00Commented Nov 22, 2013 at 2:56
Add a comment
|
2 Answers
If you're on Linux you can use cron.
2 Comments
Naourass Derouichi
I'm hosting my files in a hosting company server. I have only Cpanel.
Neil Girardi
You may need to upgrade your hosting account to one with access to SSH or a more feature-rich admin panel. Contact your company's customer service and ask them if they offer a package that will allow you to set up cron jobs. If they do not you might want to look into switching hosting companies.
why don't you just call the php file or php function ?
1 Comment
Naourass Derouichi
Is there a way to call a PHP file without using a html webpage?