I want to php function and get the returned data from C#.?

Tassaduq

New member
I have a PHP class. I want to call it's function and get the returned data. No XML and stuff i want it to be direct like calling a script in javascript from C#.


<?php
require_once('include/smsroamingAPI.php');

//Just Call this Function with your username and password. this will give you your unread sms
$getData = getMsgs("username","password");// I WANT TO CALL THIS FUNCTION

if($getData==-1)
die("Invalid Username/Password or Unable to connect Server");


$data=json_decode($getData);

//You can Retrieve Data by following Method:
for($i=0;$i<count($data);$i++)
{
echo "<strong>Message</strong>: ".$data[$i]->msg."<br/>";
echo "<strong>Source</strong>: ".$data[$i]->src."<br/>";
echo "<strong>Date</strong>: ".$data[$i]->date."<br/>";
echo "<strong>Contact Name</strong>: ".$data[$i]->name."<br/>";
echo "<br/><br/>";
}


//After getting all your Messages you have to tell system that you have got all the
//messages and set these messages as read messages so next time you dont get same messages.
//this will not delete your messages from smsroaming

getMsgsDone("username","password");

?>

getMsgs("username","password");//I WANT TO CALL THIS FUNCTION
 
Back
Top