unlink()?

From: Date: Sat, 05 Jun 2010 22:45:42 +0000
Subject: unlink()?
Groups: php.general 
Request: Send a blank email to php-general+get-305847@lists.php.net to get a copy of this message
Hi gang: I use unlink() to delete files on my server by using the statement: unlink($filename); where $filename is the physical path to the file plus file name, such as: $filename = '/var/www/vhosts/domain.com/httpdocs/a-dir/a-text.txt'; Now, I can read, write, and even create the file -- so I have the path and permissions correct. But if I unlink() the file and then examine the contents of the parent directory afterwards, I find the file remains -- what's up with that? This reminds me of the process of deleting files on your local hard disk, which basically sets the disk-space allocated to the file as "available for writing" without actually deleting the file. So what am I not understanding here? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#305847) next »