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);
?>

Sunday, August 28, 2011

Create template in wordpress

We can create like this

Put the comment in new php file and save it in wordpress theme folder, then new template is created with below name "MyFirstTemplate"

/*
Template Name: MyFirstTemplate

*/

Change Wordpress Theme Name

We can change it in style.css of that them folder

Facebook login button not displaying in IE

We have to use facebook html tags at the document starting, we can see the button if we use the facebook html tag (those tags will be 2 lines)