Stryves Posted May 18, 2009 Share Posted May 18, 2009 I have this <?php include "summary.php"; include "stufftodo.php"; ?> I want the summary to load AFTER stufftodo is ran... Or at least show at the top of the page. The problem is obviously if it loads first, it will load out dated data. I'd like the summary to be that the top of the page, and not at the bottom or on the right side. Is there anyway to have a php wait for the whole page to process before it loads something that's before it? Link to comment https://forums.phpfreaks.com/topic/158529-load-2nd-include-first/ Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 PHP is an imperative programming language. It's sort of like a recipe: first you do this, then you do that. Maybe if you try to explain what you are actually trying to do we'll be able to help you. Link to comment https://forums.phpfreaks.com/topic/158529-load-2nd-include-first/#findComment-836096 Share on other sites More sharing options...
garethhall Posted May 18, 2009 Share Posted May 18, 2009 Try this <?php $myinclude = include "stufftodo.php"; if($myinclude ){ include "summary.php"; } ?> I have no idea if this will work but try it Link to comment https://forums.phpfreaks.com/topic/158529-load-2nd-include-first/#findComment-836135 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.