Jump to content

[SOLVED] Hourly event in PHP


phibettagamma

Recommended Posts

Yeah a cron is the answer.

 

If you have a webhost, go to the control panel and the chances are they will have a option for Cron Jobs.

 

The way it works is that you create the code, just like a PHP file then set the Cron Job to execute this file once an hour.

 

Did my first cron yesterday and its working perfectly  :)

Yeah a cron is the answer.

 

If you have a webhost, go to the control panel and the chances are they will have a option for Cron Jobs.

 

The way it works is that you create the code, just like a PHP file then set the Cron Job to execute this file once an hour.

 

Did my first cron yesterday and its working perfectly  :)

 

I don't have a host yet, still work in progress and I'm only gonna pay for hosting when my work is done.

I work with apache @ home for the moment for testing, is it possible to use a Cron Job then??

Yeah a cron is the answer.

 

If you have a webhost, go to the control panel and the chances are they will have a option for Cron Jobs.

 

The way it works is that you create the code, just like a PHP file then set the Cron Job to execute this file once an hour.

 

Did my first cron yesterday and its working perfectly  :)

 

I don't have a host yet, still work in progress and I'm only gonna pay for hosting when my work is done.

I work with apache @ home for the moment for testing, is it possible to use a Cron Job then??

 

Is your local install of apache on linux or windows? If it is on Windows, then you'll need to set up a scheduled task (here is a nice tutorial that will get you going for that). If it's on Linux, let us know, and we can walk you through setting up a crontab there as well.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.