waylon999 Posted August 19, 2008 Share Posted August 19, 2008 Hello, I am going through some code for an app called knowledgetree, and I have found a function that I need to use. I also need to see what function is calling this function. The problem is that I cannot find anywhere that this function is getting called. I did a grep of the entire site and all that came up was the function definition. I know it's being called because I added an echo and exit statement and they came up on the site. I'm assuming that the function name is stored in the database, but I am really not sure. I am wondering if there is some way to determine where a particular function is called from. Is there some sort of function for this or can anyone think of a better way of figuring this out? Thanks Link to comment https://forums.phpfreaks.com/topic/120301-calling-function/ Share on other sites More sharing options...
awpti Posted August 19, 2008 Share Posted August 19, 2008 You can try to: echo __FILE__; ... in the function call, but that likely won't work. PHP will only be in a DB if it's being called via eval(), so look for eval() statements. SELECT * FROM some_table WHERE some_content like '%function_name%'; to see if it's in the DB anywhere.. Link to comment https://forums.phpfreaks.com/topic/120301-calling-function/#findComment-619783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.