print_r(is_file("$logPath/$logFileName")); // RETURNS 1
unlink("$logPath/$logFileName"); // RETURNS WARNING: PERMISSION DENIED
[/PHP]
This code should tell me that the file located at
$logPath/$logFileName should delete the log file, however, it never
deletes it due to permissions error.
However, upon checking the file properties I find this:
- I am a member of the group with full permissions to edit/write/delete
the file
Apache is a member of the same group with full permissions to
edit/write/delete the file
Apache and I are in the group that has full permissions to
edit/write/delete all other files in the exact same folder and those
can ALL be edited, written or deleted
This file was created and transferred the same way as all others, is a
text file and contains only text, no binary characters of any kind.
However, it can never be deleted even though I have permissions to do
so as does Apache.
What could I be doing wrong?
Thanx
Phil