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"; ?> Quote 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? Quote 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 Quote 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 Quote 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? Quote 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 Quote 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. Quote 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... Quote 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 Quote 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 Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/242016-homepage-error/#findComment-1243168 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.