Creating a Basic Web Service Using PHP, MySQL, XML, and JSON

Web services are on the rise and eventually going to take over. Twitter has a great API to get started. Here we can create a basic web service using PHP, MySQL, XML, and JSON using my blog.

You will need adequate validation before you can use web services so make sure you fill in the correct database credentials.

Since I am user “1” we can use this to display the last 10 posts in XML.

The XML Output

JSON Example

Creating a web services is that easy. Now let others find your site without you having to do any work!

Share on FacebookShare on Google+Email this to someoneShare on RedditShare on LinkedInShare on TumblrTweet about this on TwitterShare on StumbleUpon

Leave a Reply

Your email address will not be published.