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  :)

Link to comment
Share on other sites

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??

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.