Exclude content when using include
Posted: Thu Oct 08, 2009 3:26 pm
Is there a way to don't include a specific section of a page while using the include function?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
Page content
<section>
Section content
</section>
Code: Select all
Page content
Code: Select all
$isIncluded = true;Code: Select all
Display this bit.
And this bit.
<?php if(!isset($isIncluded)) { ?>
But not this bit.
<?php } ?>