Where and how to write chmod 666 permissions?

Andrey Arshinov, not only in Linux, but in all Unix-like operating systems

chmod ( string $filename , int $mode )
filename -   
mode -  

I.e., it should be like this:

chmod("/dir/file", 0666);

Answer 1

Permissions are only used on Linux, command chmod(' ', 666);

Answer 2

If using Windows – you work via FTP – then use Total Commander – Files tab->Change attributes