I want to change the chmod values of the files from the user. But it does not work. My code is;
$chmod = "0777";
chmod($filename, $chmod);
I am entering chmod 777. But the chmod value of the file is 1411.
I tried chmod 0777, 777, 00777. The results remain the same.