Skip to content

Simple PHP script which sends sms through gammu.

Notifications You must be signed in to change notification settings

uniquepurpose/smsphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

smsphp

Simple PHP script which sends sms through gammu.

gammu is configured to use an ZTE MF112 3G USB modem to send text messages.

Requirements:

  • run gammu-config (a working config is in this repo)
  • copy ~/.gammurc to your webserver/www-data homedir (cp .gammurc /var/www/)
  • add your webserver/www-data to dialout group. (ie dialout:x:20:www-data)
  • create an sms.log file and allow your webserver/www-data to write to this file (touch /var/www/html/sms.log && chown www-data /var/www/html/sms.log)
  • ZTE MF112 needs to be usb_modeswitch'ed after every reboot. Add "usb_modeswitch -c /usr/share/usb_modeswitch/19d2:0103 -v 19d2 -p 0103" to your /etc/rc.local (replace vendor/product codes if they differ)

Usage

About

Simple PHP script which sends sms through gammu.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages