Solved

using PHP to run scheduled tasks like the ColdFuion Scheduler

Posted on 2010-11-26
4
277 Views
Last Modified: 2012-05-10
I have used ColdFusion in the past using the CFSCHEDULE function to run scheduled tasks or queries each morning.  Is there something similar in PHP to the C.F. Scheduler?  
0
Comment
Question by:ssailer
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
leehanken earned 350 total points
ID: 34219989
Cron is a time-based job scheduler in Unix-like computer operating systems. The name cron comes from the word "chronos", Greek for "time". Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email.

-Wikipedia
0
 
LVL 1

Assisted Solution

by:pak_slm
pak_slm earned 150 total points
ID: 34222149
If your cPanel support cron job then try as

0 0 */20 * * php -q /home//doc_expiry_email.php

it run evry 20th day
0
 

Author Comment

by:ssailer
ID: 34222164
I'm fairly new to PHP.  Is this something that all hosts offer, or do some have it disabled so tasks can't run automatically?  This site is currently being hosted by Go Daddy.  
0
 
LVL 1

Expert Comment

by:pak_slm
ID: 34222181
It depends upon hosting company and your package. Kindly consult with hosting company if they have cron job option.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Php pie charts 3 26
Whether to use true/false, yes/no or 0/1 11 50
updating the date data 12 19
PHP get array item with custom id 4 18
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now