Code to detect current page
<p>Is there a php or javascript code that can detect the current user's page and then add <code>&lt;a class="active"&gt;</code> to an item in a <code>ul</code> (my menu).  I include my menu in my pages with <code>PHP include</code> so making change is easy; I only have to edit it once.  But, with that method, I can't individually set each page to have <code>a class="active"</code>.  How can I do this?</p>
