I can't delete a file using unlink()
and when I use fopen
with the "w"
tag, I get an error. The file has 777
chmod. I can use fopen()
to write at the end of the file. But I can't delete anything.
Can anybody help me please?
Here's a sample:
echo substr(sprintf('%o', fileperms('..')), -4); //777
echo substr(sprintf('%o', fileperms('.')), -4); //777
echo substr(sprintf('%o', fileperms('test')), -4); //777
chmod('tmp',0777); //Permission denied