<?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>Camilo Lozano III &#187; upload</title>
	<atom:link href="http://camilord.kagayan.com/tag/upload/feed/" rel="self" type="application/rss+xml" />
	<link>http://camilord.kagayan.com</link>
	<description>Linux for Servers, Macintosh for Graphics and Windows for Solitair...</description>
	<lastBuildDate>Wed, 08 Sep 2010 04:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[PHP] How to upload a file</title>
		<link>http://camilord.kagayan.com/2009/04/02/php-how-to-upload-a-file/</link>
		<comments>http://camilord.kagayan.com/2009/04/02/php-how-to-upload-a-file/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 08:48:37 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[how to upload]]></category>
		<category><![CDATA[preview uploaded files]]></category>
		<category><![CDATA[sample script]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=139</guid>
		<description><![CDATA[I would like to share this script to all since most of my friends ask how to create an upload script using PHP. Download the PHP script at; Main Download: Mirror 1: simple_upload.zip Upload File Demo: http://www.cable21.net/camilord/simple_upload/index.html Modification according to your preferred setup Its default upload directory is uploads/ and to change this, just change [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to share this script to all since most of my friends ask how to create an upload script using PHP.</p>
<p>Download the PHP script at;</p>
<ol>
<li>Main Download: <a class="downloadlink" href="http://camilord.kagayan.com/download/simple_upload.zip" title="Versionv0.0.2 downloaded 8 times" >Simple Upload Demo (8)</a><br />
<a title="Download" href="http://www.cable21.net/camilord/simple_upload/simple_upload.zip" target="_blank"></a></li>
<li>Mirror 1: <a title="Download" href="http://www.cable21.net/camilord/simple_upload/simple_upload.zip" target="_blank">simple_upload.zip</a></li>
</ol>
<p>Upload File Demo: <a title="Upload Demo" href="http://www.cable21.net/camilord/simple_upload/index.html" target="_blank">http://www.cable21.net/camilord/simple_upload/index.html</a></p>
<p><strong>Modification according to your preferred setup</strong></p>
<p>Its default upload directory is <em>uploads/</em> and to change this, just change the line 19;</p>
<p><span style="color: #008000;">// set upload destination</span><br />
<span style="color: #ff6600;">$uploaddir</span> = <span style="color: #993300;">&#8220;uploads/&#8221;</span>;</p>
<p>In the script, it is capable to validate allowed file types. As default, images files are only allowed to be uploaded. To change this, just edit the <em>upload.php </em>at line 37.</p>
<p><span style="color: #008000;">// allowed file types</span><br />
<span style="color: #ff6600;">$validMIME</span> = <span style="color: #3366ff;">array</span>(<span style="color: #993300;">&#8216;jpg&#8217;</span>,<span style="color: #993300;">&#8216;jpeg&#8217;</span>,<span style="color: #993300;">&#8216;bmp&#8217;</span>,<span style="color: #993300;">&#8216;png&#8217;</span>,<span style="color: #993300;">&#8216;gif&#8217;</span>);</p>
<p>Just add any file extension you want to allow&#8230; Sample;</p>
<p><span style="color: #008000;">// allowed file types</span><br />
<span style="color: #ff6600;">$validMIME</span> = <span style="color: #3366ff;">array</span>(<span style="color: #993300;">&#8216;jpg&#8217;</span>,<span style="color: #993300;">&#8216;jpeg&#8217;</span>,<span style="color: #993300;">&#8216;bmp&#8217;</span>,<span style="color: #993300;">&#8216;png&#8217;</span>,<span style="color: #993300;">&#8216;gif&#8217;</span>,<span style="color: #ff0000;">&#8216;doc&#8217;</span>,<span style="color: #ff0000;">&#8216;zip&#8217;</span>,<span style="color: #ff0000;">&#8216;pdf&#8217;</span>);</p>
<p>So I just allowed Document, Zip and PDF files&#8230;</p>
<p>That&#8217;s all.. I think everything is understandable.. hehehe.. Please read also the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2009/04/02/php-how-to-upload-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
