The Bat Posted August 30, 2007 Share Posted August 30, 2007 Hello, Is it possible to check if a function was called within a certain page? If so, how? Thanks. Link to comment https://forums.phpfreaks.com/topic/67327-possible-to-check-if-a-function-has-been-called/ Share on other sites More sharing options...
Ken2k7 Posted August 30, 2007 Share Posted August 30, 2007 Uh, why would you want to do that? But I guess you can do this: <?php function toCheck(){ define("CHECKED", 1); // codes here } function checkFunction(){ if (defined("CHECKED")){ // the function toChecked() has been executed and now write your codes } } ?> Link to comment https://forums.phpfreaks.com/topic/67327-possible-to-check-if-a-function-has-been-called/#findComment-337818 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.