All pastes #913284 Raw Edit

Untitled

public text v1 · immutable
·published 2008-02-21 22:54 UTC
rendered paste body
<?php
$dir = "E:/filmer/";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {

        while (($file = readdir($dh)) !== false) {
			if(($file !== ".") AND ($file !== "..")) {
			
			$pagefile = "e:/filmer/".$file."";

 
	
$upsince = filemtime($pagefile); 
$gettime = (time() - filemtime($pagefile)); 
$days = floor($gettime / (24 * 3600)); 
$gettime = $gettime - ($days * (24 * 3600)); 


				echo "<pre><table border='0' cellpadding='0' cellspacing='0' width='353'>
	<tr>
		<td>- ".$file."</td>
		<td width='85' align='right'><b>".$days."</b> dager</td>
	</tr>
</table></pre>";
				
        }
		}
        closedir($dh);
    }
}

?>