I need to search for .pdf files that are distributed on some Windows computers on a network. I would like to, after that save and display this file to the user.
It happens that due to storage problems I can not centralize these files on a single data server at the moment, so I'm trying a solution in PHP.
I'm using the following code:
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator("\\10.32.247.118\Processos digtalizados"),
RecursiveIteratorIterator::SELF_FIRST);
However, the following error is being returned:
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(\10.32.247.118\Processos digtalizados,\10.32.247.118\Processos digtalizados): Access to Denied. (code: 5)'