News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

LearnComputer.com:
Sending Text Messages with PHP
September 25, 2012 @ 09:15:38

In this new tutorial on LearnComputer.com, they show you how to, using a simple call to PHP's mail function, you can send a text message to anyone.

Text messaging seems more convenient than making phone calls and creating your own PHP script to send these messages is a very easy thing to set up. Get on board with these other companies that have found how convenient text messages are for their customer and start integrating text messaging into your PHP applications. In this article, I will show you two ways to accomplish this and you will be surprised at how simple this is to do.

Once you've found the right email address for the provider, sending the message is pretty simple using mail. As an alternative, they recommend a service like TextMagic to send the messages. It's a bit more reliable and uses SMS instead of email to get your message out.

0 comments voice your opinion now!
text message email textmagic sms tutorial


PHPMaster.com:
Implement Two-Way SMS with PHP
July 17, 2012 @ 08:46:22

PHPMaster.com has an interesting new article posted today showing how you can use PHP to create a two-way messaging (SMS) application that can both send and initiate actions based on message content.

SMS is used for various purposes these days. For example, major websites like Gmail and Facebook use SMS to improve their authentication process with multi-factor authentication and notifying users about the updates. These are one-way SMS applications since messages are sent only from these sites to the user. Two-way SMS applications are more complex than one-way ones. In two-way SMS apps, a user can initiate a conversation by sending messages, and then the application responds according to the user's commands.

They base the application on the Clickatell SMS service (not free, but cheap - pay by the message too) which includes the ability to hook into your API on a specific endpoint and relay the message data. The message can either be sent via a POST or GET and can easily be interpreted in your app extracting things like a timestamp, the number it came from and, of course, the actual text of the message. There's also a section about the "User Data Header" functionality that lets you easily split up a message for recombination on the remote device. Code is included for all examples.

0 comments voice your opinion now!
sms tutorial bidirectional send receive


Cats Who Code:
Sending SMS with PHP and TextMagic An A to Z guide
March 27, 2012 @ 10:57:15

On the Cats Who Code site today there's a new tutorial showing how to send SMS messages from your PHP application with the help of the TextMagic service.

Over the years, Short message service (SMS) has become a very important way of communication, and many businesses are looking for easy ways to send automated text messages to their customers. In this tutorial, I'm going to show you how you can send SMS using PHP and a third party service called TextMagic. Its very easy to do!

They step you through the process - creating a TextMagic account, configuring the account with your own password and creating a simple script that includes their own API library and sends the SMS request.

0 comments voice your opinion now!
sms textmagic tutorial send api


Justin Carmony's Blog:
SMS Nagios Notifications with PHP & Twilio
January 31, 2012 @ 12:40:46

In this latest post to his blog Justin Carmony looks at a system he created to hook his Nagios notifications into the Twilio web service and have it notify him via SMS with something was wrong.

In the past I would just use my iPhone's email-to-txt email address. However, when I received the txt message, it wasn't formated very pretty, and it would have a different "From Number." So if we had a crazy day, I would have 20-30 message threads in my iPhone all about Nagios. [...] What I like out this setup is with Twilio, I can buy a phone number for $1 a month. So all my notifications come through the same number.

He's included the PHP code he uses to send the notifications (using the Twillo library) and the Nagios commands he configured to send the notifications to that script via the command line.

0 comments voice your opinion now!
sms nagios tutorial twilio notifications commandline


PHPMaster.com:
Understanding the Command Design Pattern
January 03, 2012 @ 08:25:29

On PHPMaster.com today there's a new article introducing you to the Command design pattern and looking to help you understand its use a bit better.

The majority of [cell phone] users have opted to receive an email, but a significant number are now opting to receive the notifications via SMS. Here's the problem: How do you send a message via two different channels to both groups of users? The logical approach would be to split the users into 2 groups, email recipients and SMS recipients, which would involve running 2 different queries and sending the codeword to each group separately. Using the Command Pattern, which I will introduce you to in this article, you can send the message to both groups of users in a single process.

He uses the message queue he mentioned as an example - showing how you can can queue up different kinds of objects (actions) based on a common interface into the same process. He creates a "DailyAlertEmail" and "DailyAlertSMS" classes, both with a "send" method. The settings for these are then pulled from a database and the "execute" method on the "MessageQueue" class is called to loop through them, calling "send" to do that work.

0 comments voice your opinion now!
command designpattern tutorial message queue sms email


Gonzalo Ayuso's Blog:
Howto Send/Read SMSs using a GSM modem, AT+ commands and PHP
March 22, 2011 @ 08:15:27

Gonzalo Ayuso has a new post to his blog today showing how you can send and read SMS messages with PHP through a GSM modem. The AT+ commands they use can be sent via a serial (or serial-to-usb) interface directly from your application to a local device. He includes both code and some sample AT commands to get the ball rolling.

GSM modems are similar than normal modems. They've got a SIM card and we can do the same things we can do with a mobile phone, but using AT and AT+ commands programmatically. That's means we can send (and read) SMSs and create scripts to perform those operations. [...] The idea is the following one: We are going to create a main class called Sms. It takes in the constructor (via dependency injection) the HTTP wrapper or the serial one (both with the same interface).

His base SMS class provides open, close and read methods that talk with the device set in a child class (in this case "/dev/ttySO"). The sendSMS method is defined to take in the number to send to and the message. The AT command examples show how to send the SMS message, read all of the messages waiting and delete an SMS from the device. You can get the full code from github.

0 comments voice your opinion now!
sms read send tutorial gsm modem tty


Simon Harris' Blog:
Making Phone Calls and Sending SMS with HTML
June 10, 2010 @ 08:59:06

In a recent post o his blog Simon Harris talks about how you can make phone calls and send SMS messages from your PHP applications (well, sort of). He shows how to trigger phone calls and SMS on certain phones by way of an HTML page.

Okay, so you can't really make phone calls and send SMS messages using only HTML; that would be silly. However, if you are developing web sites and web applications for mobile handsets, you can take advantage of some features in XHTML Mobile Profile which make it easy for a user to call a number without typing that number in. You can also use the same mechanism to trigger - on the user's handset - an SMS or MMS dialog with the intended recipient's number and the message content prepopulated.

He includes three examples if it in action (using PHP to render the page) - creating a link to make a call from the HTML, sending an SMS if the text inside a link and doing the same with a MMS message. He uses the WURFL project to make it all work and code snippets are included.

0 comments voice your opinion now!
sms mms phone wurfl tutorial


Attila Szabo's Blog:
Send SMS messages from your website through smsBug gateway
September 15, 2008 @ 11:13:41

Attila Szabo has come up with a class that makes sending SMS messages from your site simple (through the smsBug gateway).

I wrote a simple PHP class for sending SMS messages through smsBug gateway. It can send a single SMS message and receive the number of credits left (see the UML diagram of the classes below). You need to include two classes into your PHP code.

He includes an example of it in use (sending a single SMS message to a phone) as well as a demo of it in action and a link to the download where you can grab the class for yourself.

0 comments voice your opinion now!
sms message class tutorial smsbug gateway


Zend Developer Zone:
MMS me the 411 ASAP (via PHP, of Corz)
April 06, 2006 @ 07:33:31

Cell phones have become ubiquitous in our society, making it possible to get information instantly through things like SMS messaging. If you've ever looked at your phone and wondered how you could send the same kinds of things from your scripts, this post on the Zend Developer Zone is a push in the right direction.

SMS messages have become ubiquitous in most of the world. As with any commodity technology, those who make their money off of it are always looking to expand it so that they can charge more. In the SMS world, there is the MMS, Multimedia Messaging Service. Developed by the Open Mobil Alliance MMS is designed to deliver rich content messages over packet data services.

That's all well and good but without the proper tools how are you going to message (spam) the cell-phones of your closest 25,000 friends with the latest release (obeying all relevant copyright laws, of course) from your favorite band? Well fear not, Stefan Hellkvist over at hellkvist.org has rushed to your rescue. The library, MMSlib, is used to encode and decode MMS messages in PHP.

There's no tutorial here, just information about the library and more pointers to the site. The MMSLib code is released under the GPL.

0 comments voice your opinion now!
sms mms messaging mmslib sms mms messaging mmslib



Community Events





Don't see your event here?
Let us know!


interview symfony update series tool introduction opinion voicesoftheelephpant podcast composer release security library package framework version community application laravel language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework