AT commands on PHP

Posted on 2005-05-11
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

    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


    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

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    New My Cloud Pro Series - organize everything!

    With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

    Suggested Solutions

    In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
    For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
    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…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now