Is it possible to auto run a .php file on my site with out using cron jobs? Its because I don't have cpanel on my localhost and my site is going to depend on a script running every hour to update some of the page content.
Printable View
Is it possible to auto run a .php file on my site with out using cron jobs? Its because I don't have cpanel on my localhost and my site is going to depend on a script running every hour to update some of the page content.
I havn't really looked into it, but the only viable way would be through cron jobs.
An idea is if you site has a page which is frequently looked at, do a function to check when the script was last run, then if its longer or equal to an hour ago... run it.
Not a great solution I know, but would work.
Thanks, that's a good idea :) I will do it like that.