Test if on a certain page with php?
<p>Using PHP, is there a way to test if the browser is accessing a certain page?</p>

<p>For example, I have a header file called header.php which is being pulled into a couple different pages.  What I want to do is when I go to a different page, I want to append certain variable to the title.</p>

<p>Example.</p>

<p>Inside header.php:</p>

<pre><code>&lt;?php 

$titleA = " Online Instruction";
$title B = "Offline";
?&gt;

&lt;h2&gt;Copyright Info: &lt;?php if ('onlineinstruction'.php) echo $titleA; ?&gt; &lt;/h2&gt; 
</code></pre>

<p>edit: also if you believe there is  a simpler way to do this, let me know!</p>
