All pastes #341544 Raw Edit

Mine

public text v1 · immutable
·published 2007-02-05 18:46 UTC
rendered paste body
<?php

set_time_limit(0);

header('Content-type: text/html; charset=windows-1254');

function listele ($dir)
{
	$dir = dir($dir);
	
	while ( $x = $dir->read())
	{
		if ($x != "." || $x != "..")
		{
			if (is_dir($x))
			{
				listele($x);
			}
			else
			{
				echo $x,'<br>';
			}
		}
	}

	$dir->close();
}

listele('C:\Program Files\Apache Group\Apache2\htdocs');

?>