File "output_list.php"

Full path: /www/ttest/acceleration/output_list.php
File size: 507 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Back

<?php
function html($tabs, $print)
{
	for($i = 0; $i < $tabs; $i++)
		print "\t";
	print $print. "\n";
}

function getFileList($target)
{
	$ret = array();
	$files = scandir($target);
	foreach($files as $file)
	{
		if (strcmp($file, ".") == 0 || strcmp($file, "..") == 0)
			continue;
		else if (is_file($target. "/". $file))
			$ret[] = $file;
	}
	return $ret;
}

$target = "./log/";

$files = getFileList($target);

for($i = 0; $i < count($files); $i++)
{
	if ($i > 0)
		print ",";
	print $files[$i];
}
?>

PHP File Manager