There could be but you need to help us to help you. Take a few seconds to read the sticky topic about using [php] and [/php] tags to present your php code to us. There is a link to it in my sig.
Secondly, you've provided no information about how this sms text is going to get to your script. Are you sending it to a mobile that then initiates a http request? sms and http are two completely different protocols. If you don't give us anything to go on then we can't do much to help.
My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!