Possibly opendir() fails to create a valid directory resource due to some restrictions.
Quote:
$dh = @opendir( $path );
// Open the directory to the handle $dh
|
Check $dh variable after this line or remove @ here to see what's happen(@ is used to suppress error output ):
Quote:
$dh = opendir( $path );
// Open the directory to the handle $dh
|