<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Highlight Current Page Using PHP Includes</title>
	<atom:link href="http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/</link>
	<description>ElanMan&#039;s Code Snippets</description>
	<lastBuildDate>Tue, 24 Aug 2010 07:35:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Andy</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-258</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 24 Aug 2010 07:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-258</guid>
		<description>Excellent - a perfect simple solution! If you are using subfolders AND and include, then you must use $_SERVER[&#039;SCRIPT_FILENAME&#039;   as   __FILE__  seems to return the path of the include itself, not the file you want to highlight. Works perfectly, thank you!</description>
		<content:encoded><![CDATA[<p>Excellent &#8211; a perfect simple solution! If you are using subfolders AND and include, then you must use $_SERVER[&#8216;SCRIPT_FILENAME&#8217;   as   __FILE__  seems to return the path of the include itself, not the file you want to highlight. Works perfectly, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhisek</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-257</link>
		<dc:creator>Abhisek</dc:creator>
		<pubDate>Wed, 28 Jul 2010 01:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-257</guid>
		<description>Whoa!! thanks. Nice snippet. Saved me.</description>
		<content:encoded><![CDATA[<p>Whoa!! thanks. Nice snippet. Saved me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KLJKLJ</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-256</link>
		<dc:creator>KLJKLJ</dc:creator>
		<pubDate>Mon, 26 Jul 2010 15:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-256</guid>
		<description>Thank&#039;s! Its perfekt! Easy and it works :)</description>
		<content:encoded><![CDATA[<p>Thank&#8217;s! Its perfekt! Easy and it works <img src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Manier op actieve pagina te markeren - 9lives - Games Forum</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-253</link>
		<dc:creator>PHP Manier op actieve pagina te markeren - 9lives - Games Forum</dc:creator>
		<pubDate>Mon, 19 Jul 2010 22:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-253</guid>
		<description>[...] en is wat omslachtig.  ik kwam op volgende mogelijkheid... beide zijn ongeveer hetzelfde: deze en deze  zou dit de beste manier zijn? nog nooit geprobeerd, maar het zou moeten [...]</description>
		<content:encoded><![CDATA[<p>[...] en is wat omslachtig.  ik kwam op volgende mogelijkheid&#8230; beide zijn ongeveer hetzelfde: deze en deze  zou dit de beste manier zijn? nog nooit geprobeerd, maar het zou moeten [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-252</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 09 Jul 2010 04:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-252</guid>
		<description>YOU LEGEND :D

This is just what I was looking for!</description>
		<content:encoded><![CDATA[<p>YOU LEGEND <img src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>This is just what I was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-188</link>
		<dc:creator>AJ</dc:creator>
		<pubDate>Fri, 07 May 2010 01:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-188</guid>
		<description>does anyone know...

if i wish the same navigation selection highlighted for more than one page, how would i code this?

an example would be an &quot;About Us&quot; in the navigation,  when there are several related About Us pages and when a user is on any of them, keeping the About Us highlighted in the nav.   file names might be: about.php, about-gm.php, about-md.php, etc.

thanks in advance for any help.

great and very useful article btw!

peace,
Aj</description>
		<content:encoded><![CDATA[<p>does anyone know&#8230;</p>
<p>if i wish the same navigation selection highlighted for more than one page, how would i code this?</p>
<p>an example would be an &#8220;About Us&#8221; in the navigation,  when there are several related About Us pages and when a user is on any of them, keeping the About Us highlighted in the nav.   file names might be: about.php, about-gm.php, about-md.php, etc.</p>
<p>thanks in advance for any help.</p>
<p>great and very useful article btw!</p>
<p>peace,<br />
Aj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-183</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Thu, 22 Apr 2010 02:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-183</guid>
		<description>The best explanation I saw untill now. Simple and straight to the point.
Thanks for this very good lesson!!!
Best regards,
Jorge</description>
		<content:encoded><![CDATA[<p>The best explanation I saw untill now. Simple and straight to the point.<br />
Thanks for this very good lesson!!!<br />
Best regards,<br />
Jorge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-182</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sun, 18 Apr 2010 04:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-182</guid>
		<description>ElanMan,

Thanks for this tutorial.  Simple and straight forward.

I&#039;ve been trying for days to get a simple navigation like this to work, and nothing is working properly.

I&#039;ve tried this tutorial and many others, word for word, and they all do the same thing.  The links work perfectly on every page, but the &quot;current&quot; class never works.

The &quot;current&quot; class works fine without PHP, but once I put in the PHP code it no longer works.  I&#039;m a PHP noob, so I&#039;m sure I&#039;m doing something wrong.  But, I&#039;m also wondering if it&#039;s something with my PHP setup on my host.  Could that cause this problem?

Any help would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>ElanMan,</p>
<p>Thanks for this tutorial.  Simple and straight forward.</p>
<p>I&#8217;ve been trying for days to get a simple navigation like this to work, and nothing is working properly.</p>
<p>I&#8217;ve tried this tutorial and many others, word for word, and they all do the same thing.  The links work perfectly on every page, but the &#8220;current&#8221; class never works.</p>
<p>The &#8220;current&#8221; class works fine without PHP, but once I put in the PHP code it no longer works.  I&#8217;m a PHP noob, so I&#8217;m sure I&#8217;m doing something wrong.  But, I&#8217;m also wondering if it&#8217;s something with my PHP setup on my host.  Could that cause this problem?</p>
<p>Any help would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ElanMan</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-175</link>
		<dc:creator>ElanMan</dc:creator>
		<pubDate>Wed, 03 Mar 2010 18:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-175</guid>
		<description>Hi Daniel,
As this method is just using string comparisons, you would have to check for a common string segment in all links.
In the example you gave, this would mean checking for &#039;about&#039;, not an ideal solution. You might be better looking for a breadcrumb class that does this sort of thing automatically.</description>
		<content:encoded><![CDATA[<p>Hi Daniel,<br />
As this method is just using string comparisons, you would have to check for a common string segment in all links.<br />
In the example you gave, this would mean checking for &#8216;about&#8217;, not an ideal solution. You might be better looking for a breadcrumb class that does this sort of thing automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.elanman.co.uk/2009/01/highlight-current-page-using-php-includes/comment-page-1/#comment-173</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=299#comment-173</guid>
		<description>Guys, if I need to highlight two or more links, like: about.php, about_1.php, about_2.php, like sublink using the same page, what can I do?</description>
		<content:encoded><![CDATA[<p>Guys, if I need to highlight two or more links, like: about.php, about_1.php, about_2.php, like sublink using the same page, what can I do?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
