Run code if not being included
<p>page1.php:</p>

<pre><code>include 'page2.php';
echo $info;
</code></pre>

<p>page2.php:</p>

<pre><code>$info = "some info";
if(!included){
  echo 'Why are you on this page?';
}
</code></pre>

<p>How can I get the value of <code>included</code> to see if the page is viewed by a user?</p>
