To Display XML content using PHP Header

by Bhumi // Jan 24,2013 // 1 comment.

To Display XML content using PHP Header

Nowadays web services are become more and more popular and Most commonly used format for exchanging information in web services are XML because XML is simple to use and easy to read tag structures.

In this tutorial,I will show you how you read read XML in PHP using header content type.The header informs the browser which type of document it is so the browser can render it as per that.

Let’s understand the code:

First of all, let’s generate xml code.

Next, main part of code is header, need to write header to read xml content.To display XML file on browser use Content-type: text/xml header.

That’s all there is to it.Anyway I hope that helps some of you.If you have any questions please let me know via the comments.

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.


To create zoho leads using PHP

Today i am going to explain about how to create zoho leads from php. Zoho provide online lead management system.Zoho leads take details of company, READ MORE

Webservice in WordPress

Here i am going to explain new article about how to call webservice in wordpress. Webservices are useful to retrieve your contents ftom PHP to READ MORE

Clean HTML content in PHP

After a long long time i get time to write article and i am curious to write but didn’t get time. So, Today I am READ MORE

Convert RGB to Hex HTML code in PHP

Here, I am going to explain code which is used to get HTML Color Code from RGB( RGB stands for Red, Green, and Blue) Equivalent. READ MORE

To convert PHP array into Javascript array

Sometimes you want to get php array values into javascript as an array. Mostly when you are using ajax. In Ajax , we pass php READ MORE

Feedback One

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">