Q:
         
         
            
               Explain how to work with Permissions in PHP.
            
                      
         
             Answer
                        Permissions in PHP are very similar to UNIX. Each file has three types of permissions – Read, write and execute. Permissions can be changed using the change mode or CHMOD command. CHMOD is followed by 3 digit number specifying the permission type. CHMOD 777 is for Read, Write and execute.
Unnecessary permissions can be stripped off using UNMASK command.
Unmask (777);
          
         
         
         
             View answer
             Workspace
             Report Error
             Discuss