PHP头条
热点:

php遍历目录-PHP源码


1. [PHP]代码

read()) !== false)
		{
			$dir = $path . DIRECTORY_SEPARATOR . $file;

			if ($file == "." || $file == "..")
			{
				continue;
			}
			else if (is_dir($dir))
			{
				echo "directory:" . $file . "\n";
				loadReadDir($dir);
			}
			else
			{
				echo "fileName:" . $file . "\n";
			}
		}

		$pathDir->close();
	}

	loadReadDir();

	echo memory_get_usage() . "\n";

www.phpzy.comtrue/php/4140.htmlTechArticlephp遍历目录-PHP源码 1. [PHP]代码 read()) !== false){$dir = $path . DIRECTORY_SEPARATOR . $file;if ($file == "." || $file == ".."){continue;}else if (is_dir($dir)){echo "directory:" . $file . "\n";loadReadDir($dir);}else{echo "fileNa...

相关文章

相关频道:

PHP之友评论

今天推荐