Hi,
I am trying to run a PHP script daily at the end of each day, sending out emails and updating the database.. I have no idea how to do it in PHP..
From what I read, cron seems to be the way, but my ISP did not installed it...
I heard you can wrapped PHP within some CGI code to let it run automatically, but I could not find any clear explaination. Would be great to get some help regarding any good ways to automatically run a PHP script.
Thanks for any help!
How to automatically run a PHP script daily?
Moderator: General Moderators
If you do not have access to crontab on your server then you could use the service provided by fastcron.com or install fake cron on your Server, providing you can execute CGI scripts. You can download the fake cron from smarterscripts.com.
Hope this helps.
Hope this helps.
On linux, i made a cronjob to a cgi script that looked like this.
Code: Select all
#!/usr/bin/perl
require "http-lib.pl";
$p = &HTTPGet("/page.php","www.domain.com",80,"?foo=bar");
print $p;I used fastcron -- but for some reason the site is down for a while ... I use http://www.webbasedcron.com -- it's reliable and hasn't been downKriek wrote:If you do not have access to crontab on your server then you could use the service provided by fastcron.com or install fake cron on your Server, providing you can execute CGI scripts. You can download the fake cron from smarterscripts.com.
Hope this helps.
Good luck