I have a php website on an IIS webserver. I want to use scandir on a directory on another server. Therefor I created a virtual directory for my website on IIS. (conntected as a user that has permission on this directory. (IUSR has permission too, just in case...)
my code is: (imp is the name of the virtual directory in the root directory of my website)
$dir = "imp/xxx/xxx/xxx/02";
$allFiles = scandir($dir);
but it is not working. error.log:
scandir(imp/xxx/xxx/xxx/02,imp/xxx/xxx/xxx/02): Das System kann den angegebenen Pfad nicht finden. (code: 3) in C:\inetpub\wwwroot\test\index.php on line 13
-> "System can't find the path"
Can you help me out?
Best regards