iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2008, 01:50 AM
Ani Ani is offline
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 7
Ani RepRank 0
Default Executing Automated Task in PHP

I want to know how to do programming of executing automated task every day in PHP.

For ex. every day there might be some visitors whose Registration gets expired so every day this script should run automatically & execute the code wihtout any human intervention.

I know there is something like Cron Jobs but dont have much idea of the same w.r.t executing Cron jobs on Online Web Servers.

I am working in PHP & mysql. Please suggest.

Thanks in advance.

Ani
Reply With Quote
  #2 (permalink)  
Old 09-04-2008, 05:30 AM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default Re: Executing Automated Task in PHP

Hi,

A cron job is basically a scheduled task run at an interval you set. Without knowing specifics of your hosting i can't really advise you further. Do you have a control panel for your hosting account?

The actual job to be run can be anything you want ( that is executable ). It could be a php script / bash script / executable etc.

Post some more details about your hosting and I can advise you further.

Mike
Reply With Quote
  #3 (permalink)  
Old 09-04-2008, 09:24 PM
SEO's Avatar
SEO SEO is offline
WebProWorld Pro
 
Join Date: Apr 2008
Posts: 157
SEO RepRank 1
Default Re: Executing Automated Task in PHP

You can set up a cron job using cpanel:
cPanel Tutorials - How to create/delete a cron job (standard mode)
how to setup a cronjob using cpanel

cron job cpanel - Google Search
Reply With Quote
  #4 (permalink)  
Old 09-04-2008, 09:55 PM
WebProWorld New Member
 
Join Date: Jun 2004
Posts: 3
blaws RepRank 0
Unhappy Re: Executing Automated Task in PHP

Sounds like you do want to use cron. Here is a site that may help you get started (*note: be aware of all security implications, since you want to use php) Best of luck!

Introducing Cron [PHP & MySQL Tutorials]
Reply With Quote
  #5 (permalink)  
Old 09-05-2008, 04:32 AM
Ani Ani is offline
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 7
Ani RepRank 0
Default Re: Executing Automated Task in PHP

Thanks for the responses.
My hosting has cpanel and i think i will set up a cron job using the cpanel.
I have checked out the cpanel tutorial posted above. I think that should be of great help.

thanks once again

regds
Ani
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link building task.. samuelwhalley Search Engine Optimization Forum 2 05-08-2008 03:03 AM
Google Sitemap Executing Problems mess Google Discussion Forum 9 06-25-2005 06:02 PM
Gartner takes Microsoft to task WPW_Feedbot IT Discussion Forum 0 02-18-2005 06:00 PM
Coursey: Is Google Forgetting Its Task? WPW_Feedbot Search Engine Optimization Forum 0 12-15-2004 05:30 PM
Hosting with task scheduler (like Unix cron)? uswebportal IT Discussion Forum 3 07-16-2004 12:02 PM


All times are GMT -4. The time now is 03:28 AM.



Search Engine Optimization by vBSEO 3.3.0