Jump to content

Homepage error


lukep11a

Recommended Posts

Does anybody know why I would be getting this error? If i just type in the web address the homepage is displayed, but if I type in the web address/index.php it appears, it also appears when I click on any link on the website that would take you to the homepage??

 

<?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";

?>

Link to comment
https://forums.phpfreaks.com/topic/242016-homepage-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.