scottybwoy Posted May 17, 2007 Share Posted May 17, 2007 Why does an include(CONSTANT); work in a single level function but not within a dual level function. Examples: <?php class Aclass { function levelone() { include(WILL_WORK); } } //=====================// function levelone() { if ($inc == "inside $this->levelone()) { include(WONT_WORK); } } } ?> Link to comment https://forums.phpfreaks.com/topic/51837-include-explanation/ Share on other sites More sharing options...
trq Posted May 17, 2007 Share Posted May 17, 2007 Sorry.... there is no such thing as a dual level function? Please be clearer in your explination. Link to comment https://forums.phpfreaks.com/topic/51837-include-explanation/#findComment-255453 Share on other sites More sharing options...
scottybwoy Posted May 17, 2007 Author Share Posted May 17, 2007 Sorry, I meant like an if statement within a function, I was hoping my psudo example would make it clearer, as that is close to what I'm trying to do. Link to comment https://forums.phpfreaks.com/topic/51837-include-explanation/#findComment-255459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.