2011-07-12, 08:49 PM
I get this image on my homepage
![[Image: unavailable.jpg]](https://camo.mybb.com/27ebef70430dd1ed84ba09834aa2c5e34beafc8d/687474703a2f2f696d616765732d70772e7365637572657365727665722e6e65742f696d616765732f756e617661696c61626c652e6a7067)
and index.php
and index.php
Quote:<?php
// pageok
// managed by puppet - hostingcms02
header("Content-type: text/plain");
// Total size of directory
$totalSize = 0;
// List of files in cwd
$dir = opendir('.');
while (($filename = readdir($dir)) ==! false) {
$files[] = $filename;
}
// The results of filesize are cached, clear that cache
clearstatcache();
// Total file sizes
foreach ($files as $file) {
// Add file to total size
$totalSize += filesize($file);
}
echo "pageok\n\n";
echo "Directory Size: $totalSize\n\n";
?>