<?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>PHP Tutorials Code Snippets and Php Tips &#187; bulk file uploader</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/bulk-file-uploader/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : How to make a file uploader</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-how-to-make-a-file-uploader/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-how-to-make-a-file-uploader/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 19:48:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Usefull PHP]]></category>
		<category><![CDATA[bulk file uploader]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[php file uploader]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=19</guid>
		<description><![CDATA[Hi, In this php tutorial you will learn how to make a file uploader. Less words, and here we are : first we create the html form &#60;form action=&#34;&#34; method=&#34;POST&#34; enctype=&#34;multipart/form-data&#34;&#62; Browse file to upload &#60;input type=&#34;file&#34; name=&#34;filetoupload&#34; id=&#34;filetoupload&#34;&#62;&#60;br/&#62; &#60;input &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-how-to-make-a-file-uploader/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>In this php tutorial you will learn how to make a file uploader. Less words, and here we are : first we create the html form</p>
<pre class="html">
<span class="htmlFormTag">&lt;form action=<span class="htmlAttributeValue">&quot;&quot;</span> method=<span class="htmlAttributeValue">&quot;POST&quot;</span> enctype=<span class="htmlAttributeValue">&quot;multipart/form-data&quot;</span>&gt;</span>
Browse file to upload <span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;file&quot;</span> name=<span class="htmlAttributeValue">&quot;filetoupload&quot;</span> id=<span class="htmlAttributeValue">&quot;filetoupload&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;br/&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;submit&quot;</span> name=<span class="htmlAttributeValue">&quot;sb&quot;</span> id=<span class="htmlAttributeValue">&quot;sb&quot;</span> value=<span class="htmlAttributeValue">&quot;Upload now&quot;</span>&gt;</span>
<span class="htmlFormTag">&lt;/form&gt;</span>
</pre>
<p>Now that we have the html form created, I&#8217;ve pushed the action on itself. So, no need to create another separate page to process the data.</p>
<p>Here is the php code</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span><span class="phpFunction">isset</span><span class="phpOperator">(</span><span class="phpScriptVar">$_POST</span><span class="phpOperator">[</span><span class="phpString">'sb'</span><span class="phpOperator">]</span><span class="phpOperator">)</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>
$path <span class="phpOperator">=</span> <span class="phpString">"yourpath"</span><span class="phpText">;</span>
$file <span class="phpOperator">=</span> <span class="phpScriptVar">$_FILES</span><span class="phpOperator">[</span><span class="phpString">'filetoupload'</span><span class="phpOperator">]</span><span class="phpOperator">[</span><span class="phpString">'name'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpFunction">move_uploaded_file</span><span class="phpOperator">(</span><span class="phpScriptVar">$_FILES</span><span class="phpOperator">[</span><span class="phpString">'filetoupload'</span><span class="phpOperator">]</span><span class="phpOperator">[</span><span class="phpString">'tmp_name'</span><span class="phpOperator">]</span>, <span class="phpString">"$path/$file"</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Bulk php file uploader is now done,</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-how-to-make-a-file-uploader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

