Welcome Guest, Not a member yet? Register   Sign In
Sms API
#4

[eluser]SamoualSys[/eluser]
the code is working now i have found that i mis read the api of the provider
i was writing
'&text;=' . urlencode( $text ).
while it should be '&msgtext;=' . urlencode( $text ).

also i have changed the code in the return value from true to show me the result of the url
'&msg;=' . urlencode( $text ).
'&sender;=' . $this->sendname .
'&encoding;=' . $this->encode ;
$r = @file( $url );
$res = substr( $r[0], 8, 1);
if( !$res == '0' ){
return false;
}

return $r;
}
}

thanks every one


Messages In This Thread
Sms API - by El Forum - 02-03-2013, 11:42 AM
Sms API - by El Forum - 02-03-2013, 12:24 PM
Sms API - by El Forum - 02-04-2013, 12:20 AM
Sms API - by El Forum - 02-09-2013, 02:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB