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
Solved

using PHP to run scheduled tasks like the ColdFuion Scheduler

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
This article discusses four methods for overlaying images in a container on a web page
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 count occurrences of each item in an array.

808 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