<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in PHP: Delete or unlink a file on the server | PHP programming | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Fri, 22 May 2009 02:24:06 -0000</lastBuildDate><item><title>Re: PHP: Delete or unlink a file on the server | PHP programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/#comment-9784246</link><description>hmmm.... good post...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nitish</dc:creator><pubDate>Fri, 22 May 2009 02:24:06 -0000</pubDate></item><item><title>Re: PHP: Delete or unlink a file on the server | PHP programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/#comment-8419733</link><description>Sometimes it's a good idea to check if the file exists first, then you won't get a PHP error if the file you're trying to delete is not there. Just add a simple IF statement to accomplish this:&lt;br&gt;&lt;br&gt;$tmpfile = "/full/path/to/delete-me.txt";&lt;br&gt; if (file_exists($tmpfile)) { unlink ($tmpfile); }</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher</dc:creator><pubDate>Mon, 20 Apr 2009 10:36:33 -0000</pubDate></item><item><title>Re: PHP: Delete or unlink a file on the server | PHP programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1490/php_delete_or_unlink_a_file_on_the_server/#comment-5063376</link><description>a nice n short article on how to delete a file using PHP codes. Good work. Thank you for sharing.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wiz432</dc:creator><pubDate>Sun, 11 Jan 2009 19:51:36 -0000</pubDate></item></channel></rss>