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. Quote 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 } } ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.