Is it possible to access and scan a folder outside of webroot?
Here's the code:
$cameraLocation = C:\wamp\www\PictureSucker\Camera
$files = scandir($cameraLocation);
foreach($files as $file)
{
echo $file . "<br>";
}
Here's the error message:
Warning: scandir(C:\wamp\www\PictureSucker\Camera ) [function.scandir]: failed to open dir: No such file or directory in C:\wamp\www\PictureSucker\index.php on line 12
Warning: scandir() [function.scandir]: (errno 2): No such file or directory in C:\wamp\www\PictureSucker\index.php on line 12
Warning: Invalid argument supplied for foreach() in C:\wamp\www\PictureSucker\index.php on line 13