This might help you:

http://www.sephiroth.it/tutorials/flashPHP/sms/
http://www.ozekisms.com/index.php?owpn=327