title: check file permissions in php with windows authentication on iis
body: <p>I have an internal site built with php 5.4 on iis 6 using windows authentication. I set up file permissions so certain people can only access certain files.</p>
  
  <p>I am trying to create a search function so users can search for a file on a site, but I only want to show users the files they are allowed to access.</p>
  
  <p>How would I use php to check if the logged in user has permission to view a certain file?</p>