Re: Help: Sending SMS using PHP through the HTTP interface

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
something like this should be sufficient:


$user="my-username";
$pass="my-password";
$text="text-to-send";
$from="originator";
$to="destination-number";
$host:="my-kannel-host"
$port= "12345"

$url = "http://".$host.":" .$port . "/cgi-bin/sendsms?";
$url .= "username=. urlencode($user);
$url .= "&password=. urlencode($pass);
$url .= "&from="	. urlencode($from);
$url .= "&to="		. urlencode($to);
$url .= "&text="	. urlencode($text);
$x = file($url);
print_r($x);

On 05.02.2008, at 13:31, felix ngige wrote:

> Hello All,
> Can any one help me with writing the script for sending SMS using  
> PHP through the HTTP interface.
>
> Thank you.
>
> felix
>
> Never miss a thing. Make Yahoo your homepage.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.