Solved

using PHP to run scheduled tasks like the ColdFuion Scheduler

Posted on 2010-11-26
4
281 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

740 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