<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How do I POST a file using php?</title>
	<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php/</link>
	<description>Comments on Ask MetaFilter post How do I POST a file using php?</description>
	<pubDate>Mon, 11 Dec 2006 15:40:22 -0800</pubDate>
	<lastBuildDate>Mon, 11 Dec 2006 15:40:22 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How do I POST a file using php?</title>
		<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php</link>	
		<description>How do I POST a file using php? Not POSTing to a PHP script but using php to read a file from the file system and POSTing it to another site. The site I am working on doesnt have cURL but fsockopen is available.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.52903</guid>
		<pubDate>Mon, 11 Dec 2006 15:34:54 -0800</pubDate>
		<dc:creator>Pasa la bola chetu</dc:creator>
		
			<category>php</category>
		
	</item> <item>
		<title>By: chrisroberts</title>
		<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php#797697</link>	
		<description>Take a look &lt;a href=&quot;http://www.zend.com/zend/spotlight/mimocsumissions.php&quot;&gt;here&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.52903-797697</guid>
		<pubDate>Mon, 11 Dec 2006 15:40:22 -0800</pubDate>
		<dc:creator>chrisroberts</dc:creator>
	</item><item>
		<title>By: Pasa la bola chetu</title>
		<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php#797713</link>	
		<description>thnx, did see that. I was looking for POSTing a form using &apos;multipart/form-data&apos; so I can submit files, has anyone else done this? Dont want to redo the wheel.&lt;br&gt;
&lt;br&gt;
Also, how about both a POST and a GET, as in&lt;br&gt;
&lt;br&gt;
&amp;lt;form action=&apos;/formProcessos.php?argv=1&apos; &amp;gt;&lt;br&gt;
&amp;lt;hidden name=&apos;field1&apos; value=&apos;value1&apos; /&amp;gt;&lt;br&gt;
&amp;lt;/form&amp;gt;&lt;br&gt;
&lt;br&gt;
I see on the server side that such a form would make the form values available under $_GET and $_POST respectively.&lt;br&gt;
&lt;br&gt;
thanks</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.52903-797713</guid>
		<pubDate>Mon, 11 Dec 2006 15:51:54 -0800</pubDate>
		<dc:creator>Pasa la bola chetu</dc:creator>
	</item><item>
		<title>By: migurski</title>
		<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php#797783</link>	
		<description>Two things: Make sure your HTML form contains the crucal &lt;code&gt;enctype=&quot;multipart/form-data&quot;&lt;/code&gt; attribute, and then use the &lt;a href=&quot;http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.files&quot;&gt;$_FILES superglobal&lt;/a&gt; to access the uploaded file data. All of this is explained in &lt;a href=&quot;http://us3.php.net/manual/en/features.file-upload.php&quot;&gt;the fine manual&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.52903-797783</guid>
		<pubDate>Mon, 11 Dec 2006 16:43:29 -0800</pubDate>
		<dc:creator>migurski</dc:creator>
	</item><item>
		<title>By: scottreynen</title>
		<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php#797839</link>	
		<description>&quot;&lt;a href=&quot;http://sourceforge.net/projects/snoopy/&quot;&gt;Snoopy&lt;/a&gt; is a PHP class that simulates a web browser. It automates the task of retrieving web page content and posting forms, for example.&quot;&lt;br&gt;
&lt;br&gt;
Snoopy can do this for you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.52903-797839</guid>
		<pubDate>Mon, 11 Dec 2006 17:41:06 -0800</pubDate>
		<dc:creator>scottreynen</dc:creator>
	</item><item>
		<title>By: david1230</title>
		<link>http://ask.metafilter.com/52903/How-do-I-POST-a-file-using-php#797847</link>	
		<description>I&apos;ve never coded this sort of thing in php before, but quick google for &quot;php httpclient&quot; gave me &lt;a href=&quot;http://scripts.incutio.com/httpclient/&quot;&gt;this&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.52903-797847</guid>
		<pubDate>Mon, 11 Dec 2006 17:47:39 -0800</pubDate>
		<dc:creator>david1230</dc:creator>
	</item>
	</channel>
</rss>
