Hi gang:

I use unlink() to delete files on my server by using the statement:


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?



http://sperling.com  http://ancientstones.com  http://earthstones.com

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to