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); } } } ?> Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.