Re: [PHP] totally a newbie in sending phone number to a webserver

[email protected] (Farzan Dalaee)
Newsgroups php.general
Message-ID <CAFoT97ETtn9UNfZNaRk7qthxakNcfr7AATQE5MomjnXCLunWMg@mail.gmail.com>
    require_once('nusoap/nusoap.php');
    $client = new nusoap_client('http://smsprovider.com/post/send.asmx?wsdl'
);

    $err = $client->getError();

    if ($err)
    {

        echo 'Constructor error' . $err;

    }

$parameters['username'] = "";
$parameters['password'] = "";
$parameters['to'] = "";
$parameters['from'] = "";
$parameters['text'] ="test";
$parameters['isflash'] =false;


    $result = $client->call('send', $parameters);
    print_r($result);


On Tue, May 21, 2013 at 1:46 PM, Negin Nickparsa <[email protected]>wrote:

> I registered a SMS web service and I have username and password
> and there are methods as follow which I can use:
>
> balance
> receive
> send
> send to all
> send advanced
> status
> status advanced
>
> suppose I have a form and I will get the phone number from user
> also I have user name,pass and url of the web service
> like $phone['number'],$user,$pass,$url
>
> I don't know what exactly I should do to force the php code read from the
> functions of the web service does including the url enough?
> I am totally mixed up.
>
> can someone tell me what is happening in this procedure?
>
> is there any tutorial so that I can understand it?
> I tried to use sample codes but they were different from which I wanted.
>
> Thanks in Advance.
>
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.