Forum Moderators: coopster

Message Too Old, No Replies

Is it possible?

too new to know much about mysql

         

TerryG

11:23 am on Apr 30, 2005 (gmt 0)

10+ Year Member



Is it possible?
to have php and Mysql automatically check a db on a timed interval, have it flag say a user for some preset reason and "email or fax that user with a pre made message" and or have the db email every one at once?

Stormfx

4:45 pm on Apr 30, 2005 (gmt 0)

10+ Year Member



Not 100% automatically, no. There has to be some sort of user interaction at some point. PHP only processes code when a page is requested. When the page is finished, processing stops.

That is, unless you write a command line program that executes PHP via command line and 'schedule' it :p

mack

4:49 pm on Apr 30, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



My guess is this can be done using cron. You would need to write some code to carry out the actual task. But using cron you could automaticlay excecute this code at any given time.

Mack.