lukep11a Posted July 14, 2011 Share Posted July 14, 2011 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 More sharing options...
Psycho Posted July 14, 2011 Share Posted July 14, 2011 What is the error? Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242846 Share on other sites More sharing options...
AyKay47 Posted July 14, 2011 Share Posted July 14, 2011 you refer to the error as "it", can we see exactly what the error is so we may know how to address it Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242847 Share on other sites More sharing options...
lukep11a Posted July 14, 2011 Author Share Posted July 14, 2011 The code i posted is the error I'm referring to. That code is displayed instead of my homepage Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242848 Share on other sites More sharing options...
AyKay47 Posted July 14, 2011 Share Posted July 14, 2011 what is the name of the file that the code you posted is stored in? Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242849 Share on other sites More sharing options...
lukep11a Posted July 14, 2011 Author Share Posted July 14, 2011 the code is not in any of my files, I have never seen it before, that's why I presumed it was some sort of error, it just appears whenever I click on a link that should go to index.php Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242852 Share on other sites More sharing options...
Psycho Posted July 14, 2011 Share Posted July 14, 2011 Well, the second comment is // managed by puppet - hostingcms02 Is that your hosting company? If so, contact them about this. In fact, you should contact them anyway. Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242854 Share on other sites More sharing options...
AyKay47 Posted July 14, 2011 Share Posted July 14, 2011 I havn't dealt with a situation like your before, but as mjdamato said, that looks like something caused by your hosting company... Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242855 Share on other sites More sharing options...
lukep11a Posted July 14, 2011 Author Share Posted July 14, 2011 Ok thanks, I'm with godaddy, will drop them an email Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1242856 Share on other sites More sharing options...
lukep11a Posted July 15, 2011 Author Share Posted July 15, 2011 It was to do with the cache memory on my computer, alt + f5 did the trick, now the link works fine Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1243167 Share on other sites More sharing options...
AyKay47 Posted July 15, 2011 Share Posted July 15, 2011 ah, thanks for letting us know! Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1243168 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.