Jump to content

include explanation


scottybwoy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.