I am trying to read remote directory files from another shared system, able to open files in browser but getting error when reading using php script opedir()
function.
Code:
$filesDir = "file://css-app-002-s/cs/files/";
var_dump(is_dir($filesDir));
if ($handle = opendir($filesDir)) {
$dirList = array_diff(scandir($filesDir), array('..', '.'));
}
print_r($dirList);
error:
Warning: opendir() [function.opendir]: remote host file access not supported, file://css-app-002-s/cs/files/