My setup is Windows 8 (64), WAMPSERVER 2.5, PHP 5.5.12 (64), and Apache 2.4.9 (64). However I believe this may be relevant for many other WAMP builds.
I needed my PHP application to use a repository of files that are located on a different computer on our network.
I attempted to use code like scandir('\\\\SERVER-NAME\\dir\\'); but I would get errors like [function.scandir]: Access is denied. (code: 5). Similarly [function.rename], [function.opendir], etc...
The solution was to change the user that service "wampapache64" was using.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With