PHP Classes

File: sampleTwoActionPage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Davis Muhajereen D. Dimalen  >  Gammu  >  sampleTwoActionPage.php  >  Download  
File: sampleTwoActionPage.php
Role: Example script
Content type: text/plain
Description: Second sample action page 2/2
Class: Gammu
Control mobile devices using the tool Gammu
Author: By
Last change:
Date: 9 years ago
Size: 566 bytes


Class file image Download
include_once('class.gammuWin32.php'); // Make sure the class is in the same directory
$gammuPath = "c:\gammu\win32\\"; // Path of the gammu software
$gammuExecutable = "gammu"; // Gammu executable file
$mySms = new gammuWin32($gammuPath.$gammuExecutable); // Instantiate gammuWin32

$mySms->sendSMS($_POST['celnum'], $_POST['message']); // This will send the message in $_POST['message'] and send it to
                                                            // the cellphone number in $_POST['celnum']
header("Location: "."sampleTwoForm.php?msg='Message Sent!'");