Sending SMS using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
seenud
Forum Newbie
Posts: 2
Joined: Mon May 25, 2009 1:09 am

Sending SMS using PHP

Post by seenud »

Hi i need to send SMS using Php. Please let me know the requirements, i live in India and need to send SMS all over the country. I need to implement this SMS module to my website.

Thanks in advance.
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Sending SMS using PHP

Post by mikemike »

Depending on the size of the system you're implementing you will need an SMS gateway.

I myself run a company that uses large amounts of SMS traffic, I use a company called ClickATell, but I am UK-based.

Your best bet is to find an Indian-based provider and sign up. My advice would be to haggle on the price as in my experience there is always leeway. Also, as with any web service, make sure you read the API documentation before signing up - you may save yourself a lot of time, money and stress by making sure it's something you can handle before signing up.

Good luck.
javagenius
Forum Newbie
Posts: 1
Joined: Thu Jun 11, 2009 3:04 am

Re: Sending SMS using PHP

Post by javagenius »

Hi mikemike:
Would you please guide us what API exactly we have to read before signing up? and where can we find it?

thanks

Hi seenud:
Did you solve your problem?

Me too wants to send SMS's from my PHP. Please, if you could send SMS's, help me in that. I live in Saudi Arabia.

Thanks

javagenius
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Sending SMS using PHP

Post by mikemike »

The API of whatever provider you sign up to. Sending SMS messages via PHP isn't like sending email, it's not simply a service you can install on your machine and off you go. You need access to the GSM networks around the world, so you need a carrier. In order to get to a carrier you need to go through a gateway. As I mentioned I use ClickATell as my gateway, they may operate in Saudi Arabia, they may not, you'll have to check their website. I'm sure there are other providers who do though.

Check the gateway's API documentation before signing up. It may be very difficult to implement. I found ClickATell's extremely easy and they have lots of ways to implement it.
Post Reply