Jump to content

Recommended Posts

Is there a software or way to know which PHP page was ran. For exaple index.php has a function called balls() but was included for another php page which was included from another. I want to be able to run index.php and know what other pages were ran as well.

 

Just to correct your terminology, php has page scope. So only one script runs at a time. The fact that you have other php files which contain code and are included does not make them seperate "runs". With that said there are ways you can build in a tracing facility, using some of the functions requinix indicated, although you can also setup xdebug and profile execution. What is it about specific files that are important? You could include a file that has code that is never executed, or have a script with 100 functions in it, only 2 of which get called. What is it that you are actually trying to determine with this effort and why?

Read the description very carefully.

This is NOT a help forum! Do not post topics asking for help not related to the website.

"This" was the PHPFreaks.com Questions, Comments, & Suggestions forum where you originally posted your thread. You were not asking a question, adding a comment, or making a suggestion about phpfreaks.com. You posted a topic asking for help not related to the website. So now your thread is here in PHP Coding Help, where people ask for help coding in PHP.

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.