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?
Asked
Active
Viewed 61 times
0

Naourass Derouichi
- 773
- 3
- 12
- 38
-
1This has already been asked. http://stackoverflow.com/questions/318361/timed-tasks-cron-like-in-php – code4jhon Nov 22 '13 at 02:56
2 Answers
1
why don't you just call the php file or php function ?

Restie
- 53
- 7
-
Is there a way to call a PHP file without using a html webpage? – Naourass Derouichi Nov 22 '13 at 03:04
1
If you're on Linux you can use cron.

Neil Girardi
- 4,533
- 1
- 28
- 45
-
I'm hosting my files in a hosting company server. I have only Cpanel. – Naourass Derouichi Nov 22 '13 at 03:05
-
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. – Neil Girardi Nov 22 '13 at 03:18