cannot unlink file that Apache and I have permissions to delete
From: Phil Powell (soazine_at_erols.com)
Date: 07/28/04
- Next message: Sarah Tanembaum: "PHP5 errors ..."
- Previous message: Wild Programmer: "querying OLAP"
- Next in thread: Pjotr Wedersteers: "Re: cannot unlink file that Apache and I have permissions to delete"
- Reply: Pjotr Wedersteers: "Re: cannot unlink file that Apache and I have permissions to delete"
- Reply: Luciano Tolomei: "Re: cannot unlink file that Apache and I have permissions to delete"
- Reply: Gordon Burditt: "Re: cannot unlink file that Apache and I have permissions to delete"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2004 10:14:40 -0700
[PHP]
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:
[List]
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
[/List]
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
- Next message: Sarah Tanembaum: "PHP5 errors ..."
- Previous message: Wild Programmer: "querying OLAP"
- Next in thread: Pjotr Wedersteers: "Re: cannot unlink file that Apache and I have permissions to delete"
- Reply: Pjotr Wedersteers: "Re: cannot unlink file that Apache and I have permissions to delete"
- Reply: Luciano Tolomei: "Re: cannot unlink file that Apache and I have permissions to delete"
- Reply: Gordon Burditt: "Re: cannot unlink file that Apache and I have permissions to delete"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|