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