<?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: Delete or unlink a file on the server</title>
	<atom:link href="http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-34170</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 12 Aug 2011 07:08:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34170</guid>
		<description>simple and to the point, would be good to maybe expand this to show you how to delete an entry in a sql database? i.e the path to the file as well as the file itself</description>
		<content:encoded><![CDATA[<p>simple and to the point, would be good to maybe expand this to show you how to delete an entry in a sql database? i.e the path to the file as well as the file itself</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesh</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-47387</link>
		<dc:creator>Homesh</dc:creator>
		<pubDate>Wed, 23 Mar 2011 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47387</guid>
		<description>well i have fix my problem.....</description>
		<content:encoded><![CDATA[<p>well i have fix my problem&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dddd</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-47253</link>
		<dc:creator>Dddd</dc:creator>
		<pubDate>Fri, 18 Mar 2011 09:40:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47253</guid>
		<description>kus ke bachchey.. teri bhen ko chodu..</description>
		<content:encoded><![CDATA[<p>kus ke bachchey.. teri bhen ko chodu..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kashif Webpro1</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-44725</link>
		<dc:creator>Kashif Webpro1</dc:creator>
		<pubDate>Mon, 13 Dec 2010 08:14:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44725</guid>
		<description>Simple &amp; easy</description>
		<content:encoded><![CDATA[<p>Simple &amp; easy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tshepo</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-43735</link>
		<dc:creator>Tshepo</dc:creator>
		<pubDate>Fri, 05 Nov 2010 07:41:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-43735</guid>
		<description>Hi every one, I would like to know, how can I delete a file from a server? My problem actually lies on the path that I must specify so that when I issue the unlink() function it is able to find the specific file I&#039;m referring to and delete it right away.</description>
		<content:encoded><![CDATA[<p>Hi every one, I would like to know, how can I delete a file from a server? My problem actually lies on the path that I must specify so that when I issue the unlink() function it is able to find the specific file I&#8217;m referring to and delete it right away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: good</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-39374</link>
		<dc:creator>good</dc:creator>
		<pubDate>Fri, 28 May 2010 03:11:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39374</guid>
		<description>erwtewtewrt
wert
</description>
		<content:encoded><![CDATA[<p>erwtewtewrt<br />
wert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-38690</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 21 Apr 2010 05:47:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-38690</guid>
		<description>Excellent tip! That solved my problem in four files, accidentally created on my webhost, these files were not deleted in any FTP client (windows, linux, etc) because you have &quot;&quot; caracter in the file name and received the message 550 prohibited filename. With this tip, the files had been removed!</description>
		<content:encoded><![CDATA[<p>Excellent tip! That solved my problem in four files, accidentally created on my webhost, these files were not deleted in any FTP client (windows, linux, etc) because you have &#8220;&#8221; caracter in the file name and received the message 550 prohibited filename. With this tip, the files had been removed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Souvik Banerjee</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-37548</link>
		<dc:creator>Souvik Banerjee</dc:creator>
		<pubDate>Tue, 16 Feb 2010 14:08:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-37548</guid>
		<description>What kind of advertisement is this... cant read the article... please remove it. or fix it. </description>
		<content:encoded><![CDATA[<p>What kind of advertisement is this&#8230; cant read the article&#8230; please remove it. or fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitish</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-30442</link>
		<dc:creator>Nitish</dc:creator>
		<pubDate>Fri, 22 May 2009 06:24:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-30442</guid>
		<description>hmmm.... good post...</description>
		<content:encoded><![CDATA[<p>hmmm&#8230;. good post&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher</title>
		<link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/comment-page-1/#comment-29562</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Mon, 20 Apr 2009 14:36:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-29562</guid>
		<description>Sometimes it&#039;s a good idea to check if the file exists first, then you won&#039;t get a PHP error if the file you&#039;re trying to delete is not there. Just add a simple IF statement to accomplish this:

$tmpfile = &quot;/full/path/to/delete-me.txt&quot;;
 if (file_exists($tmpfile)) { unlink ($tmpfile); }</description>
		<content:encoded><![CDATA[<p>Sometimes it&#8217;s a good idea to check if the file exists first, then you won&#8217;t get a PHP error if the file you&#8217;re trying to delete is not there. Just add a simple IF statement to accomplish this:</p>
<p>$tmpfile = &#8220;/full/path/to/delete-me.txt&#8221;;<br />
 if (file_exists($tmpfile)) { unlink ($tmpfile); }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/17 queries in 1.109 seconds using memcached
Object Caching 416/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 06:55:44 -->
