Scehduling a PHP script - Possible???

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
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Scehduling a PHP script - Possible???

Post by fractalvibes »

This may be more of an Apache question, but is there a way to schedule a PHP script to run periodically? Say I have a little forum application, and I'd like to give members the option to recieve all posts either by email,
read on web only, or as a daily digest. A script that could be scheduled to run daily for the digests would be ideal. haven't yet figured out how to
grab replies to these posts and plug into my database either. A very enjoyable learning process, PHP is. You have to step from ASP to .Net to have much the same functionality as PHP natively, and that is impressive.

Many Thanks,

Phil Jackson
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

Post by cybaf »

which platform are you running on?

if *nix platform you can setup a cron job to run the script for you...

happy new years.

//cybaf
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Scheduling PHP scripts

Post by fractalvibes »

It is Linux/Apache/PHP/MySQL - leased server space. The Chron job sounds interesting. Where might one find more info about proceeding with creating one?

thanks, and a very Happy New Year to you and all!

Phil Jackson
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Image Image
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Scheduling a PHP script

Post by fractalvibes »

Excellent resource - many thanks, Phice. And a fellow Texan to boot!

thanks!

Phil J.
Post Reply