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
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

Link to comment
Share on other sites

.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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.