AT commands on PHP

Posted on 2005-05-11
Medium Priority
Last Modified: 2013-12-09
Hello expert,  i have research SMS Application,i have mobile phone using USB port. I can send/Receive sms using Atcommands, but How to include At-commands on php or  asp scripts?
I try using PDU format and then i include to php/asp  but it doesn't work.
i have question again , How build SMS polling ?
you know that the sender sent to the virtual number ex. (4433) <--- how that happene

Question by:fastoxso
LVL 13

Accepted Solution

imarshad earned 500 total points
ID: 13984122
I think it will be better if you ask this question in PHP Area as you will be able to get more and accurate help. Any how You can use dio for PHP to access your Serial Port ....
Following is the link

Once you can read write the Serial Port then polling the Port isn't that much bigger issue. Although I have never done anything in PHP but still I think it can be done once you have the handle of the Serial Port.


Author Comment

ID: 14024661

I try using dio on php 5(windows),


exec('mode com1: baud=9600 data=8 stop=1 parity=n xon=on');

$fd = dio_open('com1:', O_RDWR);

while (1) {

  $data = dio_read($fd, 256);

  if ($data) {
     echo $data;


there are something error i found it, i am so confused To get thet functions to work,
How to get  configure PHP with --enable-dio in windows system ?

Fatal error: Call to undefined function dio_open() in C:\xampp\htdocs\serial.php on line 6

Expert Comment

ID: 14768296
I do not think it's advisable to use PHP to send/receive SMS, it's better if you use C++ or VB.  As for shortcode or virtual number, you will need to connect to an SMSC using SMPP or some other protocols in order to receive messages sent to shortcodes.

Joshua Lim
Visualtron Software

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question