Solved

using PHP to run scheduled tasks like the ColdFuion Scheduler

Posted on 2010-11-26
4
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

759 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