SMS with a webserver...

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
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

SMS with a webserver...

Post by mikusan »

Hi, i would like if someone would point me to an open source project that uses PHP to send SMS messages to people, i need somewhere to start. I would like to write my own, but I need some understanding first. I know that you can send sms messages to people via the email address if you sign up for onw with your cell phone company, but i need to be able to do it to anyone.

Thanks in advance.
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

I did it by fake'ing a existing sms form from some other provider.... 8)

It worked well for about 2 days.... After that my servers ip cannot even ping the other server :lol:
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

bigfoot.com offers an API for sending SMS messages, they charge per message (5 "credits" per message for most of the ones I send) and you need an account, I am using this myself (as some of the free senders can not reach certain networks).. I have the code for doing this from PHP, would need some polish for commercializing..
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

I know there are free services out there, but i would like to write my own, partly because of curiosity and the wish to be able to do it myself too and partly because i need to send multiple ones.
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

What do you mean by "doing it yourself"? Setting up your own SMS-Gateway and get deals with telecommunication companies?

As an individual I wouldnt go much further than e.g. using Bigfoot's API... (http)
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

Let's say for one second i wanted to do that, i would like to know how to do that even though i would eventually stop at the part where i get deals from companies. But i would love to know how to do it. For myself at least...
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

I really dont know much about doing that, but if you do not plan on selling such services i dont think you want to..

A quick google search gave a couple of links, e,g, a SMS-gateway-software vendor, more for the GSM-operator side of things, then there is http://www.smsxchange.com/ which is more of a solution provider I believe.. I don't think you want to dig further into it than using a providers API, doing business with the global operators and implementing such stuff I think will be difficult unless you plan on doing thousands or millions of messages per month.. I have a friend workiong for a small ISP (5K clients) that operates a small GSM network with services for business/inhouse etc, even they outsource all SMS and GSM related services..
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

The thing that bugs me BIG time is the fact that there are tons of those kinda services out there, but i don't know how they do it. Now I REALLY want to find out how it's possible. I mean if you have a webserver, why can't you somehow send data to a cellphone...
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

phice posted a topic in the General forum, it has a script that works perfectly.

I've developed it more but my project isn't open source. :wink:


http://www.devnetwork.net/forums/viewto ... hlight=sms
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

I don't know why so many posts came up with this... but that's EXACTLY what i DON'T want to do. That is rely on someone else's service. Thanks for your suggestion, but i prefer the old fashioned do it all yourself no dependencies kinda approach.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

mikusan wrote:I don't know why so many posts came up with this... but that's EXACTLY what i DON'T want to do. That is rely on someone else's service. Thanks for your suggestion, but i prefer the old fashioned do it all yourself no dependencies kinda approach.
I've deleted that post, it just seems to be advertising spam for an SMS gateway.

Mac
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

Agreeed thanks a bunch...
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Post by Heavy »

A Windows guy I know just wrote a DLL to communicate with a cell phone hardware-cable-connected to his server and talked to this DLL with the web server.

If you use linux. there's got to be a way to do it similarily. I have no clue how and have not tried that myself. Of course, you could try to get a deal with the cell phone operator to get away cheaper then the ordinary pricing for SMS.

It would work, wouldn't it? relying only on your own cell phone and its operator. If it would become expensive, is up to the application design.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Dependant on the mobile operator, the comm's company has to create API's to the SMS Gateways (SMSC).

These API's are then opened to 3rd parties at a (ahem) nominal fee, developers at these 3rd parties then create simple PHP scripts using socket functions to talk to a given port (like telnet) by sending specific command to the API (such as sending an SMS).

The API does all the hard work of interfacing with the OS/App's on the SMSC's.

Hope this partially answers your OP.

Regards,

[Edit: The commands you need to send down the socket and the port number varies wildly between operators, hence this will be the part of any code you create that won't be complete. None of the UK operators have "open" API's, it's one of their biggest incomes! :roll: ]
Post Reply