Jump to content

Sequence of php files called


superprg

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/47973-sequence-of-php-files-called/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.