Ruby on Rails is really OOPs based framework. I personally love this framework. I worked on this for many years. Many Ruby lovers are looking to integrate the wordpress with Ruby on Rails. I strongly suggest to integrate wordpress with ROR using XMLRPC APIs. Using following code you can easily add the wordpress into Ruby on Rails Project. Use my following steps:
wordpress XMLRPC api integration with ruby and rails
Note: There are so many XMLRPC APIs provided by wordpress. I given the some simple example here.
First setup wordpress. Login to wordpress admin and enable the XMLRPC.
Go to Settings->writing and enable the XMLRPC checkbox.
wordpress XMLRPC api integration with ruby and rails
Now you can fetch the wordpress posts, pages, tags etc.. using XMLRPC.
Following script is written in Ruby.
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
Many new PHP developer looking for how to easily read the xml file. In this tutorial I will show you how to read the xml file using PHP language. Here I given the sample code for parsing the XML using PHP.
How to read xml using php
This is my xml file format and file name is readxml.xml file
Last year in Feb I heard about JSONP and really liked the JSONP solutions. JSONP allows you to make an HTTP request outside your own domain
JSONP consume the Web Services from JavaScript code. Earlier I worked on so on AJAX but there is issue with working or communication issue with cross domain sites.
JSONP for cross domain communication solution using with javascript and PHP
XMLHttpRequest is blocked from making external requests.
JSONP for cross domain communication solution using with javascript and PHP
JavaScript code to make a JSONP call will as follows:
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
In this tutorial we given code sample for create and read the xml using php. we given explanation and there details
What is XML?
Extensible Markup Language (XML) is described as both a markup language. Now it is known as data storage format also
How to create and read the xml using php
XML is very important in in today’s application development environment.
If you’ve never before worked with XML in PHP or have not yet made the jump to PHP5, this starter guide to working with new functionality available in PHP5 for XML.
Using following code you are able to create simple xml file.
php create xml file from mysql, Here I am giving you the very basic sample code for creating XML file through PHP and MYsql. We given code sample for this.