dingus Posted July 23, 2008 Share Posted July 23, 2008 hey is there a way to call a stack of what file called what through require* or include * functions? Link to comment https://forums.phpfreaks.com/topic/116135-php-file-stack/ Share on other sites More sharing options...
MasterACE14 Posted July 23, 2008 Share Posted July 23, 2008 what do you mean? is there a way to include a lot of files with just 1 include ? Link to comment https://forums.phpfreaks.com/topic/116135-php-file-stack/#findComment-597231 Share on other sites More sharing options...
dingus Posted July 23, 2008 Author Share Posted July 23, 2008 no assume i have 3 files index.php config.php db.php now in index.php i have require_once("config.php"); inconfig.php i have include("db.php"); can i put somthing in db.php to work out the preocess started on index.php? Link to comment https://forums.phpfreaks.com/topic/116135-php-file-stack/#findComment-597253 Share on other sites More sharing options...
LemonInflux Posted July 23, 2008 Share Posted July 23, 2008 If you mean can the code work out where it's come from, I suppose there is a way. On the top of every page, do something like... $pages['page name'] = true; Then a page can just trawl through the $pages array and see what pages have been loaded beforehand. ---------------- Now playing: Lostprophets - The New Transmission via FoxyTunes Link to comment https://forums.phpfreaks.com/topic/116135-php-file-stack/#findComment-597255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.