I'm not a PHP expert, but I think u need a SMS gateway like "OZEKI". I've done it with C# code, but not PHP.
Got these links from google search. better check them out.
http://www.ozekisms.com/index.php?owpn=327
http://webdeveloper.com/forum/showthread.php?t=170285
hope this will help...