I am setting up a place for myself to post personal items for sale. I can post a name, description, price, and a picture. The problem I am having is that I am able to upload the photo and update my database with it's path, but I cannot delete the file from my server when I delete the record from my database. I am using the unlink command. [code] if ((isset($_POST['hiddenID'])) && ($_POST['hiddenID'] != "")) { $dir = "uploads"; $file = $row_items['image']; $remove = $dir . "/" . $file; unlink($remove) or die("Image could not be deleted"); [/code] That is the section that deals with the deletion of the file, I added the " or die("image could not be deleted");" so that I wouldn't have to re-create my test item everytime the file deletion failed. If I remove the "or die..." then everything works ok except it leaves the image file on the server, but still removes it's path from the database. What i don't understand is that if I change "$file" to equal the actual image file name it works perfectly fine. That tells me that it is not the rights to the folder. I wouldn't think anything in my php.ini file is wrong seeing as it works when I type the filename in for "$file". PHP 5.1.4 IIS 6.0 MySQL 5.0.18