HOW TO RUN PHP FILES WITH CRON JOB

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dudsaheb
Forum Newbie
Posts: 1
Joined: Mon Aug 11, 2008 7:36 am

HOW TO RUN PHP FILES WITH CRON JOB

Post by dudsaheb »

I WANT TO RUN THE PHP CODE WITH CRON JOBS ,

HERE I AM USING THE APPACHE SERVER ANY ONE CAN EXPLAIN ME WITH AN EXAMPLE
.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: HOW TO RUN PHP FILES WITH CRON JOB

Post by Christopher »

There is a command line version of PHP. It is usually someplace like /usr/local/bin/php. You can run PHP scripts with it from the command line.
(#10850)
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: HOW TO RUN PHP FILES WITH CRON JOB

Post by Apollo »

Image
Post Reply