superprg Posted April 21, 2007 Share Posted April 21, 2007 I am calling an index.php file Is it possible to know all the files in sequence which got called during rendering index.php on the browser I need this info for debugging I used this code at the bottom of index.php $included_files = get_included_files(); foreach ($included_files as $filename) { echo "$filename<br>"; } ?> And output I get is: index.php includes\application_top.php includes\configure.php includes\filenames.php includes\database_tables.php includes\functions\database.php includes\functions\general.php includes\functions\html_output.php includes\classes\shopping_cart.php includes\classes\navigation_history.php includes\functions\compatibility.php includes\functions\sessions.php includes\classes\currencies.php includes\classes\mime.php includes\classes\email.php includes\classes\language.php includes\languages\english.php includes\functions\whos_online.php includes\functions\password_funcs.php includes\functions\validations.php includes\classes\split_page_results.php includes\classes\boxes.php includes\functions\banner.php includes\functions\specials.php includes\classes\breadcrumb.php includes\classes\message_stack.php includes\languages\english\index.php includes\header.php includes\column_left.php includes\boxes\categories.php includes\boxes\manufacturers.php includes\modules\new_products.php includes\modules\upcoming_products.php includes\column_right.php includes\boxes\shopping_cart.php includes\boxes\best_sellers.php includes\boxes\specials.php includes\boxes\reviews.php includes\boxes\languages.php includes\boxes\currencies.php includes\footer.php includes\counter.php But I see that I dont get the template files here Is there any way I can get all the php files which are getting called? Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted April 21, 2007 Share Posted April 21, 2007 Is there any way I can get all the php files which are getting called? Is that not all the php files? How are these template files being called? Quote Link to comment Share on other sites More sharing options...
superprg Posted April 21, 2007 Author Share Posted April 21, 2007 Yeah, you are right One more thing Is it possible to know the sequence of template files like prodImages.tpl etc? Or would it be a good idea to change the extn of files from .tpl to .tpl.php and everywhere in the code too? Will that create the problem? I want to do this to know the sequence of this big application Quote Link to comment Share on other sites More sharing options...
trq Posted April 21, 2007 Share Posted April 21, 2007 .tpl files are not standard php. However, unless your running a version of php prior to 4.0.1 if your including these .tpl files they should show up. You never answered my question. How are these template files being called? Quote Link to comment 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.