Sometimes the includes load, sometimes they don't
Posted: Mon Feb 23, 2009 5:21 pm
My page design uses a number of PHP includes, for instance, here's the code that loads the menu:
<div id="menubox">
<?php include("php_includes/menu.php"); ?>
</div>
usually the pages load fine, but once in a while it will return an error stating that "....menu.php can't be found." If the refresh button is pressed, the page will probably load correctly. I'm guessing this happens because the browser hasn't caught up, or the server is overly busy, but I need this to not happen! Any thoughts?
<div id="menubox">
<?php include("php_includes/menu.php"); ?>
</div>
usually the pages load fine, but once in a while it will return an error stating that "....menu.php can't be found." If the refresh button is pressed, the page will probably load correctly. I'm guessing this happens because the browser hasn't caught up, or the server is overly busy, but I need this to not happen! Any thoughts?