I have such a problem! connected network (local disk). I want to scan it using php, but it does not work. What could be the problem? I use the scandir() method.

  • Does the OS open it? - termitorennet
  • Yes! Read access only. - chambo
  • error_reporting (E_ALL); - Webmon
  • Immediately negative, can not be answered normally? - Dem
  • I will answer - what is the practical meaning of your answer? <br> Personally, I am not interested in your opinion on this issue, do not know the answer - keep silent ... <br> <br> Do you like the question? <br> Minus, comment, but why answer "abyb answer?" - Zowie

1 answer 1

Try running the Appache service under a different account (for example, an administrator. Appache uses SYSTEM by default). It may also be necessary to set the local security policy "Network access: prevent anonymous access to named pipes and shares" to disabled.

But you expose your computer to additional threats.

  • I tried anything with access and policies fail ( - chambo