<?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/"
		>
<channel>
	<title>Comments on: PHP &amp; MySQL Tutorial 09: File Upload system with records in MySQL</title>
	<atom:link href="http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/</link>
	<description>PHP video tutorials, for everyone.</description>
	<lastBuildDate>Wed, 07 Dec 2011 17:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Andras</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-797</link>
		<dc:creator>Andras</dc:creator>
		<pubDate>Sat, 29 Oct 2011 16:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-797</guid>
		<description>Thanks Kloplop, I find the problem finally, I put the global $_FILES, $_POST, $upfile; at the wrong place. NO it works thanks a lot mate!</description>
		<content:encoded><![CDATA[<p>Thanks Kloplop, I find the problem finally, I put the global $_FILES, $_POST, $upfile; at the wrong place. NO it works thanks a lot mate!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kloplop321</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-796</link>
		<dc:creator>Kloplop321</dc:creator>
		<pubDate>Fri, 28 Oct 2011 17:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-796</guid>
		<description>basename does NOT return the file location, basename returns the name of the file, it searches for the last slash in the value you give it, and then gives you what ever is after that(the file name)
If you are giving it a directory, with a / at the end, it will return nothing.</description>
		<content:encoded><![CDATA[<p>basename does NOT return the file location, basename returns the name of the file, it searches for the last slash in the value you give it, and then gives you what ever is after that(the file name)<br />
If you are giving it a directory, with a / at the end, it will return nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andras</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-795</link>
		<dc:creator>Andras</dc:creator>
		<pubDate>Fri, 28 Oct 2011 16:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-795</guid>
		<description>Hi I get blank filelocation, any solution using something instead basename to get the file location?</description>
		<content:encoded><![CDATA[<p>Hi I get blank filelocation, any solution using something instead basename to get the file location?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kanna Ng</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-773</link>
		<dc:creator>Kanna Ng</dc:creator>
		<pubDate>Tue, 09 Aug 2011 08:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-773</guid>
		<description>I would like to insert into thefiles table the title without move or copy file to uploads folder. When needed i will alter value of the record then move or copy file to uploads folder. what could i do with the Filename because: Warning: copy() [function.copy]: Filename cannot be empty in C:\wamp\www\PHP-Login\upload.php on line</description>
		<content:encoded><![CDATA[<p>I would like to insert into thefiles table the title without move or copy file to uploads folder. When needed i will alter value of the record then move or copy file to uploads folder. what could i do with the Filename because: Warning: copy() [function.copy]: Filename cannot be empty in C:\wamp\www\PHP-Login\upload.php on line</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kloplop321</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-607</link>
		<dc:creator>Kloplop321</dc:creator>
		<pubDate>Sat, 09 Apr 2011 15:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-607</guid>
		<description>Sure, but if you want the answer quickly, the way to delete a file is
unlink($pathToFile)</description>
		<content:encoded><![CDATA[<p>Sure, but if you want the answer quickly, the way to delete a file is<br />
unlink($pathToFile)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimmyo88</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-606</link>
		<dc:creator>jimmyo88</dc:creator>
		<pubDate>Thu, 07 Apr 2011 22:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-606</guid>
		<description>Heya mate, brilliant tutorial, has been very helpful. Could you please do a follow on about deleting files as well?</description>
		<content:encoded><![CDATA[<p>Heya mate, brilliant tutorial, has been very helpful. Could you please do a follow on about deleting files as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-580</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Sat, 05 Feb 2011 07:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-580</guid>
		<description>thanks a lot. i appreciate. God bless you.</description>
		<content:encoded><![CDATA[<p>thanks a lot. i appreciate. God bless you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kloplop321</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-579</link>
		<dc:creator>Kloplop321</dc:creator>
		<pubDate>Mon, 24 Jan 2011 15:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-579</guid>
		<description>you can do something like
if(!file_exists(&quot;location/for/uploads/&quot;.$_FILE[&quot;uploadedfile&quot;][&#039;name&#039;])){
//continue to save over it..
}
However, this is after they have already sent the web page, so the file is in a temporary folder on the server at this point.</description>
		<content:encoded><![CDATA[<p>you can do something like<br />
if(!file_exists(&#8220;location/for/uploads/&#8221;.$_FILE["uploadedfile"]['name'])){<br />
//continue to save over it..<br />
}<br />
However, this is after they have already sent the web page, so the file is in a temporary folder on the server at this point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-578</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Mon, 24 Jan 2011 13:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-578</guid>
		<description>thanks for the code. its working ok. but how do i check if the file i want to upload is already uploaded at the same location i want to upload my file. waiting to hear from you soon</description>
		<content:encoded><![CDATA[<p>thanks for the code. its working ok. but how do i check if the file i want to upload is already uploaded at the same location i want to upload my file. waiting to hear from you soon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suthagar</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/04/05/php-mysql-tutorial-09-file-upload-system-with-records-in-mysql/comment-page-1/#comment-575</link>
		<dc:creator>suthagar</dc:creator>
		<pubDate>Fri, 14 Jan 2011 21:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=201#comment-575</guid>
		<description>hi  mate!

i am beginner of php  and i try to write code in several way for uploading file. i got the same error each time. finally i copied your code and tried. even-though i got same error.

could you please find out the solution.

the error as follows

Warning: move_uploaded_file(uploads/myname.rtf) [function.move-uploaded-file]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/upload/uploading.php on line 33

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move &#039;/Applications/XAMPP/xamppfiles/temp/phpjMuJGA&#039; to &#039;uploads/myname.rtf&#039; in /Applications/XAMPP/xamppfiles/htdocs/upload/uploading.php on line 33

Warning: copy(uploads/myname.rtf) [function.copy]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/upload/uploading.php on line 41
You totally failed. click here to go back and try again.

i understand that i need to do some setting somewhere. but i dont know how to do it.

i am using Mac operating system. and using XAMPP.

could you please write me where should i do some setting for permission ?

thank you</description>
		<content:encoded><![CDATA[<p>hi  mate!</p>
<p>i am beginner of php  and i try to write code in several way for uploading file. i got the same error each time. finally i copied your code and tried. even-though i got same error.</p>
<p>could you please find out the solution.</p>
<p>the error as follows</p>
<p>Warning: move_uploaded_file(uploads/myname.rtf) [function.move-uploaded-file]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/upload/uploading.php on line 33</p>
<p>Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move &#8216;/Applications/XAMPP/xamppfiles/temp/phpjMuJGA&#8217; to &#8216;uploads/myname.rtf&#8217; in /Applications/XAMPP/xamppfiles/htdocs/upload/uploading.php on line 33</p>
<p>Warning: copy(uploads/myname.rtf) [function.copy]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/upload/uploading.php on line 41<br />
You totally failed. click here to go back and try again.</p>
<p>i understand that i need to do some setting somewhere. but i dont know how to do it.</p>
<p>i am using Mac operating system. and using XAMPP.</p>
<p>could you please write me where should i do some setting for permission ?</p>
<p>thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

