Monday, December 10, 2012
Saturday, April 14, 2012
Create simple json webservice in php
Take a php file
Assign your data in an array and encode it with json. You can put the conditions for authentication.
Access the website data using curl
$row = array("Firstname"=>Testing, "Lastname"=>User, "Email"=>"user@domain.com");
echo json_encode($row);
?>
Assign your data in an array and encode it with json. You can put the conditions for authentication.
Access the website data using curl
$row = array("Firstname"=>Testing, "Lastname"=>User, "Email"=>"user@domain.com");
echo json_encode($row);
?>
Subscribe to:
Comments (Atom)