i am trying to use the php function readdir to read the sites/default/files directory, but i keep getting the error message :The system cannot find the path specified (code :3). Is there any way to read the directory? Below is the code i am using

if($handle = opendir($logo_dir)){
	echo $logo_dir;
	while (false !== ($entry = readdir($handle))) {


nevets’s picture

I think one of these should work