When I run this code, I get the error "Parse error: syntax error, unexpected T_VARIABLE in D:\web\webRoot\services\RingtoneSite\textprocess.php on line 5"
This code is supposed to be a process page that takes the user's phone number (entered into a form on another page and inserted by POST), set it as the variable $sTo, and call the textMarks API to send a text message.
The variable on line 5, $sMyApiKey, doesn't appear to have a problem.
<?php
include "/assets/misc/TextMarksAPIClient.class.php"
// Send a text message to a single TextMark subscriber:
$sMyApiKey = "API key";
$sMyTextMarksUser = 'user'; // (or my TextMarks phone#)
$sMyTextMarksPass = 'password';
$sKeyword = 'BARX';
$sTo = '$_POST[phoneNumber]';
$sMessage = "Barx Ringtone Site URL:".
"http://barx.sytes.net/services/ringtonesite/landing.php?referer=text";
$tmapi = new TextMarksAPIClient_Messaging( $sMyApiKey,
$sMyTextMarksUser,
$sMyTextMarksPass );
$tmapi->sendText($sKeyword, $sTo, $sMessage);
?>