You can use curl

    $ch = curl_init();
    curl_setopt( $ch, CURLOPT_HEADER, false );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    curl_setopt( $ch, CURLOPT_TIMEOUT, 2 );
    curl_setopt( $ch, CURLOPT_URL, $deliver_url );
    $result       = curl_exec( $ch );
    $code         = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
    $total_time   = curl_getinfo( $ch, CURLINFO_TOTAL_TIME );
    $connect_time = curl_getinfo( $ch, CURLINFO_CONNECT_TIME );
    curl_close ( $ch );


~ KH


On Mon, Nov 26, 2012 at 11:21 PM, JAHANZAIB SYED <[email protected]>wrote:

>  Dear All,
>
> I have a working *KANNEL *in place, currently I am sending SMS via http
> method, for example:
>
> *
> http://localhost:13013/cgi-bin/sendsms?username=kannel&password=kannel&to=03333021000&text=ZAIB+KANNEL+WORK
>
> *I need a simple php page which can input text and number and send the
> sms using KANNEL.
> I have tried few from the internet but not working.
>
> Can any one give me any working sample code?
>
>
> *Regards, *
> *SYED JAHANZAIB*
> **
>
>

Reply via email to