title: Change folder permission to 777 using PHP temporarily
body: <p>I have a Video folder on my server which has 755 permission. The problem is: when someone goes to upload video file, it can't be upload into that folder because of permission error.</p>
  
  <p>If I change the permission to 777, then Video can be uploaded. But I don't want to allow the folder permission to 777 for security reason.</p>
  
  <p>Is there any way in PHP to temporary change the permission to 777 while uploading video?</p>