handling events in PHP?

dpopiz

Diamond Member
Jan 28, 2001
4,454
0
0
Does PHP have the ability to respond to events?
Specifically I need some sort of script that will query a MYSQL db when it receives an email message or SMS.

if not PHP, does Python or Ruby or any other readable scripting language allow this kind of functionality?
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
To respond to email you'll need your SMTP server to have functionality to call out to a script or executable file.

To respond to SMS I guess you'll need to be running a SMS listener program that can call out to a script or executable.

If you could send an HTTP message instead, you could easily run script code from a web server.