Best way to process live incomming data in PHP?

Phil

New member
Hi guys,

I have a script which sends an email with a randomly generated number whenever you send an email to a specific inbox (we'll call it [email protected]) this is the basics of a further script i am going to write later on im just in the testing stages at the moment and was wondering what was the best way to do this.

Should i setup the script to keep checking constantly for new messages, or should i have something where the email activates a switch of some kind which starts the script running?

i've done it before with the script looping with an endless while() and a kill function inside it but its caused problems before where i forgot to setup a kill function and had to restart the server to kill it...

Any ideas?

Thanks!
 
Back
Top