Sms API |
[eluser]SamoualSys[/eluser]
i have sms api its not working its give me nothing can any one help me in that this the code for the sms api Code: class Sms_api { Code: Error : 0 Code: $this->load->library('sms_api');
[eluser]Unknown[/eluser]
Are you aware that the api URI in the code is a sedo parked domain? http://cl.ly/image/240A221E3f10
[eluser]SamoualSys[/eluser]
i have changed the main URL and after i read your post i have update my post with something will not led people to think about the URL thanks a lot for your post .
[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 |
Welcome Guest, Not a member yet? Register Sign In |