Every day is quit busy in creating small small stuff for help of customers.
This script is used for DIDX. If you have account with http://www.didx.net than you can use this script to save all incoming sms in database. Just place this script in your php web folder and set this post url in DIDX control panel.
All sms will be saved in database. You can use create_database.sql file to create database.