From: Steven L. <st...@tu...> - 2002-10-28 17:06:27
|
I would say the best way is to use if($GLOBALS["core"]->moduleExists("fatcat")) because this checks the core to see if the module is actually installed. Using the other methods you might run into a problem where the module exists but the SESSION has not been created yet. Depending on how the module is coded up. > Quick question. > > Which would be the best way to check for a module in terms of lower cpu > requirements/cycles: > > if(!$_SESSION["OBJ_fatcat"]) > > if($GLOBALS["core"]->moduleExists("fatcat")) > > if($_SESSION["OBJ_fatcat"]!==NULL) > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers -- Steven Levin Electronic Student Services Appalachian State University Phone: 828.262.2431 PhpWebsite Development Team URL: http://phpwebsite.appstate.edu Email: st...@NO... |