Where and how to prescribe chmod 666 permissions?

    3 answers 3

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

    chmod ( string $filename , int $mode ) filename - путь к файлу mode - восьмеричное значение 

    Ie, it should be like this:

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

      Access rights are used only in Linux, the chmod('путь к файлу', 666);

        If on Windows - you work through FTP - then use Total Commander - Files tab-> Change Attributes