Forse dovresti controllare se l'utente che usa php o IIS abbia anche i permessi per accedere a quella cartella.