Hi All,
I am busy re-developing an application in PHP the was previously written in Perl.
Can any body help me to have PHP script equivalent to the one below :
You help will higly appreciated
Regards
Lekoya
I am busy re-developing an application in PHP the was previously written in Perl.
Can any body help me to have PHP script equivalent to the one below :
Code:
use LWP;
$addy = "[URL unfurl="true"]http://192.168.0.2/sms/auto/sendsms.cgi";[/URL]
$ua = new LWP::UserAgent;
$header = HTTP::Headers->new('username'=>'fusername','password'=>'fpwd','smstime'=>'0');
$request = HTTP::Request->new('POST',"$addy",$header);
$smsMessage = "You will be receiving your card in the post, your RefNo: $Ref! Your YourIdentity pin is: $PinCode.Login via [URL unfurl="true"]www.xyz.co.za.KEEP[/URL] THIS SMS";
$xml = "<?xml version=\"1.0\"?><sendsms><smscount>1</smscount><sms><msisdn>$ContactDetails</msisdn><message>$smsMessage</message></sms></sendsms>";
$request->content("$xml");
$response = $ua->request($request);
$reply_msg = $response->content
Regards
Lekoya