<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Watch Your POST:  Save PHP POST Data as&#160;XML</title> <atom:link href="http://davidwalsh.name/watch-post-save-php-post-data-xml/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/watch-post-save-php-post-data-xml</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 15:40:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Delscorcho</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-26926</link> <dc:creator>Delscorcho</dc:creator> <pubDate>Mon, 19 Sep 2011 04:48:56 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-26926</guid> <description>Hello. I am trying to create a form that allows users to upload a video file and an image file with variable text fields. I have the uploader. I have the text fields.   1) How do marry the two?    2) How do I get the information to write to an XML file?  That information must include the filepath of the video file and the image file.  I need the instructions to have comments with them, so that I understand what the lines of code is doing.  Thank you so much for your help.</description> <content:encoded><![CDATA[<p>Hello. I am trying to create a form that allows users to upload a video file and an image file with variable text fields. I have the uploader. I have the text fields.   1) How do marry the two?    2) How do I get the information to write to an XML file?  That information must include the filepath of the video file and the image file.  I need the instructions to have comments with them, so that I understand what the lines of code is doing.  Thank you so much for your help.</p> ]]></content:encoded> </item> <item><title>By: Timmy</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-16924</link> <dc:creator>Timmy</dc:creator> <pubDate>Sat, 10 Apr 2010 20:50:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-16924</guid> <description>Great tip. How would I reverse this process? That is, how would I take the saved XML  POST data and send it to a PHP script?</description> <content:encoded><![CDATA[<p>Great tip. How would I reverse this process? That is, how would I take the saved XML  POST data and send it to a PHP script?</p> ]]></content:encoded> </item> <item><title>By: Ali</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-16920</link> <dc:creator>Ali</dc:creator> <pubDate>Sat, 10 Apr 2010 18:11:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-16920</guid> <description>great help mate!
thanks!</description> <content:encoded><![CDATA[<p>great help mate!<br
/> thanks!</p> ]]></content:encoded> </item> <item><title>By: Lsuse</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-8240</link> <dc:creator>Lsuse</dc:creator> <pubDate>Mon, 16 Mar 2009 14:11:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-8240</guid> <description>Does anyone know how to save a pushed XML post from a external company to a file on my server.  And this wihout knowing the URL form the company?</description> <content:encoded><![CDATA[<p>Does anyone know how to save a pushed XML post from a external company to a file on my server.  And this wihout knowing the URL form the company?</p> ]]></content:encoded> </item> <item><title>By: Ben Dodson</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-7991</link> <dc:creator>Ben Dodson</dc:creator> <pubDate>Mon, 02 Mar 2009 12:21:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-7991</guid> <description>Ah I see - I&#039;d recommend that you use something like the php function &lt;a href=&quot;http://php.net/highlight&#095;file&quot; rel=&quot;nofollow&quot;&gt;highlight&#095;file&lt;/a&gt; which would allow you to put your example code in a separate file and then pull it into your blog post with full syntax highlighting - it escapes all of the code so you can echo it correctly on your page.  Alternatively, as you&#039;re using Wordpress, you could use a plugin such as &lt;a href=&quot;http://wordpress.org/extend/plugins/wp-syntax/&quot; rel=&quot;nofollow&quot;&gt;WP-Syntax&lt;/a&gt; which does essentially the same thing but has support for lots of different programming languages and custom theming.</description> <content:encoded><![CDATA[<p>Ah I see &#8211; I&#8217;d recommend that you use something like the php function <a
href="http://php.net/highlight&#95;file" rel="nofollow">highlight&#95;file</a> which would allow you to put your example code in a separate file and then pull it into your blog post with full syntax highlighting &#8211; it escapes all of the code so you can echo it correctly on your page.  Alternatively, as you&#8217;re using WordPress, you could use a plugin such as <a
href="http://wordpress.org/extend/plugins/wp-syntax/" rel="nofollow">WP-Syntax</a> which does essentially the same thing but has support for lots of different programming languages and custom theming.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-7980</link> <dc:creator>David Walsh</dc:creator> <pubDate>Mon, 02 Mar 2009 01:44:48 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-7980</guid> <description>&lt;p&gt;Thank you Ben.  My hosting provider had security restrictions in place that prevented me from adding that in &quot;PHP&quot; blocks.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>Thank you Ben.  My hosting provider had security restrictions in place that prevented me from adding that in &#8220;PHP&#8221; blocks.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-7979</link> <dc:creator>David Walsh</dc:creator> <pubDate>Sun, 01 Mar 2009 19:24:51 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-7979</guid> <description>&lt;p&gt;Updated, thanks Ben!&lt;/p&gt;</description> <content:encoded><![CDATA[<p>Updated, thanks Ben!</p> ]]></content:encoded> </item> <item><title>By: Ben Dodson</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-7978</link> <dc:creator>Ben Dodson</dc:creator> <pubDate>Sun, 01 Mar 2009 19:18:32 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-7978</guid> <description>Also just noticed that your XML declaration is incorrect as it doesn&#039;t have a proper closing tag.  Line 8 should read:if($cycle == 1) { $output = &#039;&lt;&lt;b&gt;\&lt;/b&gt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#039;.$new&#095;line; }The question mark after the UTF-8 section is crucial otherwise if you send your XML as text/xml in a browser, it will break due to a parsing error &quot;unclosed token&quot;.&lt;b&gt;Please note:&lt;/b&gt; that you&#039;ll need to remove the backslash in front of the first question mark that I&#039;ve highlighted in red - had to put that in to make the blog comments let me post it!!</description> <content:encoded><![CDATA[<p>Also just noticed that your XML declaration is incorrect as it doesn&#8217;t have a proper closing tag.  Line 8 should read:</p><p>if($cycle == 1) { $output = &#8216;&lt;<b>\</b>?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;&#8217;.$new&#95;line; }</p><p>The question mark after the UTF-8 section is crucial otherwise if you send your XML as text/xml in a browser, it will break due to a parsing error &#8220;unclosed token&#8221;.</p><p><b>Please note:</b> that you&#8217;ll need to remove the backslash in front of the first question mark that I&#8217;ve highlighted in red &#8211; had to put that in to make the blog comments let me post it!!</p> ]]></content:encoded> </item> <item><title>By: Ben Dodson</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-7973</link> <dc:creator>Ben Dodson</dc:creator> <pubDate>Sun, 01 Mar 2009 00:16:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-7973</guid> <description>The \t still isn&#039;t fixed in your Tabify function but I ended up switching to using str&#095;repeat in any case just so I could keep everything in one contained function.  Very very useful though so thank you :-)</description> <content:encoded><![CDATA[<p>The \t still isn&#8217;t fixed in your Tabify function but I ended up switching to using str&#95;repeat in any case just so I could keep everything in one contained function.  Very very useful though so thank you :-)</p> ]]></content:encoded> </item> <item><title>By: Tana</title><link>http://davidwalsh.name/watch-post-save-php-post-data-xml/comment-page-1#comment-4475</link> <dc:creator>Tana</dc:creator> <pubDate>Fri, 09 Jan 2009 17:29:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/watch-post-save-php-post-data-xml#comment-4475</guid> <description>Thanks for this script, really helpful for generating dynamic templates... Still working on setting it up for my purposes but this really helped me!</description> <content:encoded><![CDATA[<p>Thanks for this script, really helpful for generating dynamic templates&#8230; Still working on setting it up for my purposes but this really helped me!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/17 queries in 0.013 seconds using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 11:08:26 -->
