Why function chmod() not working
Posted: Sat Mar 03, 2012 11:25 am
Hello.
there is a some.txt file, i read permission of this file, Is equal to: 0666.
I must change the permission the some.txt file as: 0777
this is my code:
Question: why not change file permissions ?
operating system is: Windows xp
there is a some.txt file, i read permission of this file, Is equal to: 0666.
I must change the permission the some.txt file as: 0777
this is my code:
Code: Select all
if (chmod('count.txt',0777)) {
echo substr(decoct(fileperms('count.txt')),-4); // The result is similar to 0666
}operating system is: Windows xp