<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How To PHP - PHP Technology, PHP Tutorial, Database Tutorials, CMS System &#187; PHP-XML</title>
	<atom:link href="http://www.phpmind.com/blog/category/php/php-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmind.com/blog</link>
	<description>Future of web development</description>
	<lastBuildDate>Tue, 10 Aug 2010 07:19:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to display XML output in Browser?</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-display-xml-output-in-browser/</link>
		<comments>http://www.phpmind.com/blog/2009/08/how-to-display-xml-output-in-browser/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 20:28:36 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[PHP-XML]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=416</guid>
		<description><![CDATA[To display XML file on browser use this header. View Code PHP&#160; &#60;?php header&#40;&#34;Content-type: text/xml&#34;&#41;; &#160; ?&#62;]]></description>
			<content:encoded><![CDATA[<p>To display XML file on browser use this header.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p416code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p4162"><td class="code" id="p416code2"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: text/xml&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2009%2F08%2Fhow-to-display-xml-output-in-browser%2F&amp;linkname=How%20to%20display%20XML%20output%20in%20Browser%3F"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2009/08/how-to-display-xml-output-in-browser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to post XML using socket ?</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-socket/</link>
		<comments>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-socket/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 19:47:35 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP-XML]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=412</guid>
		<description><![CDATA[I had discussed posting XML over HTTP using CURL in last post. Remember that was first method. As I had promised on earlier post I would like to share second method with you. That is socket!! Use this code and send your XML file. View Code PHP&#60;?php function postXMLToURL &#40;$server, $path, $xmlDocument&#41; &#123; $contentLength = [...]]]></description>
			<content:encoded><![CDATA[<p>I had discussed posting XML over HTTP using CURL in last post. Remember that was first method.<br />
As I had promised on earlier post I would like to share second method with you. That is socket!!<br />
Use this code and send your XML file.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p412code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p4124"><td class="code" id="p412code4"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> postXMLToURL <span style="color: #009900;">&#40;</span><span style="color: #000088;">$server</span><span style="color: #339933;">,</span> <span style="color: #000088;">$path</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xmlDocument</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$contentLength</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xmlDocument</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/fsockopen"><span style="color: #990000;">fsockopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$server</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errno</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errstr</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">30</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;POST <span style="color: #006699; font-weight: bold;">$path</span> HTTP/1.0rn&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Host: <span style="color: #006699; font-weight: bold;">$serverrn</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Content-Type: text/xmlrn&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Content-Length: <span style="color: #006699; font-weight: bold;">$contentLengthrn</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Connection: closern&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;rn&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// all headers sent</span>
<a href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xmlDocument</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/feof"><span style="color: #990000;">feof</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">.=</span> <a href="http://www.php.net/fgets"><span style="color: #990000;">fgets</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">128</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$result</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getBody <span style="color: #009900;">&#40;</span><span style="color: #000088;">$httpResponse</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$lines</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_split"><span style="color: #990000;">preg_split</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(rn|r|n)/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$httpResponse</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$responseBody</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineCount</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$lineCount</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$j</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$j</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$lineCount</span><span style="color: #339933;">;</span> <span style="color: #000088;">$j</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$responseBody</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$lines</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;n&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$responseBody</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$xmlpacket</span> <span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;AATHtlDispReq1&gt;
&lt;Agency&gt;
&lt;Iata&gt;1234567890&lt;/Iata&gt;
&lt;Agent&gt;lgsoftwares&lt;/Agent&gt;
&lt;Password&gt;myapassword&lt;/Password&gt;
&lt;Brand&gt;phpmind.com&lt;/Brand&gt;
&lt;/Agency&gt;
&lt;Passengers&gt;
&lt;Adult AGE=&quot;&quot; ID=&quot;1&quot;&gt;&lt;/Adult&gt;
&lt;Adult AGE=&quot;&quot; ID=&quot;2&quot;&gt;&lt;/Adult&gt;
&lt;/Passengers&gt;
&lt;DestCode&gt;OGG&lt;/DestCode&gt;
&lt;CheckInDate&gt;101009&lt;/CheckInDate&gt;
&lt;/AATHtlDispReq1&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> postXMLtoURL<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;www.yourdomain.com&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/path/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$xmlpacket</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$responseBody</span> <span style="color: #339933;">=</span> getBody<span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$responseBody</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2009%2F08%2Fhow-to-post-xml-using-socket%2F&amp;linkname=How%20to%20post%20XML%20using%20socket%20%3F"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to post XML using CURL?</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/</link>
		<comments>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 19:34:33 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP-XML]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409</guid>
		<description><![CDATA[Recently I was working in a hotel booking engine and found a couple of methods to post XML to server; I thought this might be good to share with my friends who want to post xml via HTTP POST method. There are several ways to Send XML requests via HTTP POST. I am going to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was working in a hotel booking engine and found a couple of methods to post XML to server; I thought this might be good to share with my friends who want to post xml via HTTP POST method.</p>
<p>There are several ways to Send XML requests via HTTP POST.<br />
I am going to show you two ways. Both are very simple and easy.</p>
<p>As first approach I have used a small xml file with CURL.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p409code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p4096"><td class="code" id="p409code6"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000088;">$xml_data</span> <span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;AATAvailReq1&gt;'</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">'&lt;Agency&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;Iata&gt;1234567890&lt;/Iata&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;Agent&gt;lgsoftwares&lt;/Agent&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;Password&gt;mypassword&lt;/Password&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;Brand&gt;phpmind.com&lt;/Brand&gt;'</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">'&lt;/Agency&gt;'</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">'&lt;Passengers&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;Adult AGE=&quot;&quot; ID=&quot;1&quot;&gt;&lt;/Adult&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;Adult AGE=&quot;&quot; ID=&quot;2&quot;&gt;&lt;/Adult&gt;'</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">'&lt;/Passengers&gt;'</span><span style="color: #339933;">.</span>
<span style="color: #0000ff;">'&lt;HotelAvailReq1&gt;'</span><span style="color: #339933;">.</span>
<span style="color: #0000ff;">'&lt;DestCode&gt;JHM&lt;/DestCode&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;HotelCode&gt;OGGSHE&lt;/HotelCode&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;CheckInDate&gt;101009&lt;/CheckInDate&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;CheckOutDate&gt;101509&lt;/CheckOutDate&gt;'</span><span style="color: #339933;">.</span>
        <span style="color: #0000ff;">'&lt;UseField&gt;1&lt;/UseField&gt;'</span><span style="color: #339933;">.</span>
  <span style="color: #0000ff;">'&lt;/HotelAvailReq1&gt;'</span><span style="color: #339933;">.</span>  
  <span style="color: #0000ff;">'&lt;/AATAvailReq1&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$URL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;https://www.yourwebserver.com/path/&quot;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_init"><span style="color: #990000;">curl_init</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$URL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_MUTE<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYHOST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYPEER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HTTPHEADER<span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Type: text/xml'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$xml_data</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_exec"><span style="color: #990000;">curl_exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/curl_close"><span style="color: #990000;">curl_close</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2009%2F08%2Fhow-to-post-xml-using-curl%2F&amp;linkname=How%20to%20post%20XML%20using%20CURL%3F"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
