The class is below if you are intrested.
I entered error_reporting(E_ALL) at the top of the script now all i get is empty <htm> and <body> tags
thanks for the help,
ben
class txtmessageClass {
echo "in class before variables<br>";
var api_id;
var userNameClickatell;
var passwordClickatell;
var session; //used for sending messages after user is authenticated if you need to keep the session open
function setCredintials(inApi_id, inUser, inPass, inApi_id){
echo "in setCredintials<br>";
//registers variables for authentication
$this->api_id = api_id;
$this->userNameClickatell = user;
$this->passwordClickatell = pass;
echo "done with setCredintials<br>";
}
function auth(){
echo "in auth<br>";
//creates a session
echo "made it into auth<br>";
$urlAuth = sprintf("http://api.clickatell.com/http/auth?api_id=%s&user=%s&pass=%s", $this->api_id, $this->userNameClickatell, $this->passwordClickatell);
$rtrn_fopenInfo = $this-> _fopen($urlAuth);
echo "urlAuth is: " . $rtrn_fopenInfo
}
function _fopen($command) {
//use fopen to open up wrapper (protocal handler) not a file...(this is for Ben)
$result = '';
$handler = @fopen ($command, 'r');
if ($handler) {
while ($line = @fgets($handler,1024)) {
$result .= $line;
}
fclose ($handler);
return $result;
} else {
die ("Error while executing fopen sending method!<br>Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.");
}
}
function parse($inReturn_fopenInfo, $parseType){
//parses url according to type and returns either session/balance or message info
}
}