Is there an easy way How to detect where a function call came from

It is for static page, dynamic page, website, SEO, performance and other web development discussion
ramverma
Posts: 435
Joined: Sat Aug 23, 2014 5:34 pm
Contact:

Is there an easy way How to detect where a function call came from

Postby ramverma » Mon Sep 28, 2015 7:28 am

Is there an easy way to stop the program and indicate where the subroutine was called from..
<?php
function writeMsg() {
echo "how are you";
}

writeMsg(); // call the function
?>
Bottom line if I halt the program at the function.. how can I display what the call was that called the program..
I realize I could search for writeMsg() but it will be called from many different points in the program at different times..
I would like to have it log each call and where it came from...

regards,
jack...


sidbhatt
Posts: 54
Joined: Sun Aug 30, 2015 8:01 am
Contact:

Re: Is there an easy way How to detect where a function call came from

Postby sidbhatt » Sat Oct 03, 2015 4:04 pm

The debug_backtrace() function is use todetect where a function call came from.....

Pypedaygied

killer site this is especially what I washoping to find

Postby Pypedaygied » Sun Nov 01, 2015 9:17 pm

Hello, nice site I am the owner of a letter of reference for college crew. we provide online editing services. our group can edit all types of documents for private college students. Our company carefully read through your document and other documetns, searching for and correcting all issues that obscure clarity of the quality of your labor. Our mission is simply to help you touch up your document, and to assist you with talented editors in an easy and affordable way. The crew at Ivy League Editors are a proofreading jobs utility set up, and to give you experienced and intelligent editors at a reasonable rate. After decades of being students, editors, and writers, all of us truely believe that gifted academics need the best quality of editing. All of our company are graduates of Ivy League or Ivy League-level schools and are well-read in many different schools including English, political science, philosophy,law, history and sociology. All of our editors attended or attend an Ivy League or Ivy League-equivalent university and have the best experience correcting documents in a multitude of disciplines and genres.



Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 2 guests