\n
Filename | Date | Size (bytes) | Lines | Words | Filename in " . $dir . " | Date | Size (bytes) | Lines | Words | "; } if (strpos($dir . $fsp . $ext, "https:") !== false || strpos($dir . $fsp . $ext, "http:") !== false || strpos($dir . $fsp . $ext, "HTTPS:") !== false || strpos($dir . $fsp . $ext, "HTTP:") !== false) { if (url_exists($dir . $fsp . $ext)) { $cdt = ""; $cont = file_get_contents($dir . $fsp . $ext); $recs = explode("\n", $cont); $words = explode(" ", $cont); $h = get_headers($dir . $fsp . $ext, 1); // Thanks to http://stackoverflow.com/questions/845220/get-the-last-modified-date-of-a-remote-file $cdt = ""; try { $cdt = $h['Last-Modified']; } catch (Exception $exxx) { $cdt = ""; } $outhtml .= "
---|---|---|---|---|
" . str_replace($dir, "", $dir . $fsp . $ext) . " | " . $cdt . " | " . strlen($cont) . " | " . count($recs) . " | " . count($words) . " |
" . str_replace($dir, "", $filename) . " | " . date("F d Y H:i:s", filemtime($filename)) . " | " . filesize($filename) . " | " . count($lines) . " | " . $cwords . " |