<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: You Are Here: Using PHP To Highlight Navigation</title>
	<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/</link>
	<description></description>
	<pubDate>Wed, 08 Oct 2008 02:18:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Sharlene</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-20872</link>
		<dc:creator>Sharlene</dc:creator>
		<pubDate>Thu, 14 Aug 2008 01:50:17 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-20872</guid>
		<description>This is a great tutorial! Thanks!</description>
		<content:encoded><![CDATA[<p>This is a great tutorial! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: News Stock Footage</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-18407</link>
		<dc:creator>News Stock Footage</dc:creator>
		<pubDate>Tue, 29 Jul 2008 03:00:27 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-18407</guid>
		<description>&lt;strong&gt;News Stock Footage...&lt;/strong&gt;

Please share more....</description>
		<content:encoded><![CDATA[<p><strong>News Stock Footage&#8230;</strong></p>
<p>Please share more&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web hosting basics</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-18376</link>
		<dc:creator>web hosting basics</dc:creator>
		<pubDate>Mon, 28 Jul 2008 22:01:09 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-18376</guid>
		<description>&lt;strong&gt;web hosting basics...&lt;/strong&gt;

) Some individuals or companies have abused the TrackBack feature to insert spam links on some blogs (see sping). This enables authors...</description>
		<content:encoded><![CDATA[<p><strong>web hosting basics&#8230;</strong></p>
<p>) Some individuals or companies have abused the TrackBack feature to insert spam links on some blogs (see sping). This enables authors&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15507</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Wed, 16 Jul 2008 00:01:42 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15507</guid>
		<description>&lt;strong&gt;Dan:&lt;/strong&gt;

No problem, glad it's working :)</description>
		<content:encoded><![CDATA[<p><strong>Dan:</strong></p>
<p>No problem, glad it&#8217;s working <img src='http://www.crucialwebhost.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15506</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 16 Jul 2008 00:00:36 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15506</guid>
		<description>Got it. Works perfectly! I finally understood how it works. Again .. thank you very much for you help, this tutorial and your time!</description>
		<content:encoded><![CDATA[<p>Got it. Works perfectly! I finally understood how it works. Again .. thank you very much for you help, this tutorial and your time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15497</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Tue, 15 Jul 2008 23:33:01 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15497</guid>
		<description>&lt;strong&gt;Dave:&lt;/strong&gt;

Ah, well instead of looking for the page name, just go by the $_GET variable:

Replace the following:

&lt;code&gt;$path = $_SERVER[&#039;PHP_SELF&#039;];&lt;br /&gt;
$page = basename($path);&lt;br /&gt;
$page = basename($path, &#039;.php&#039;);&lt;/code&gt;

With this:

&lt;code&gt;$page = $_GET[&#039;id&#039;];&lt;/code&gt;

Your HTML output will remain the same, we're just changing where we check for the page name, so instead of the actual filename (less extension), we just use the ID variable.

Hope that helps.</description>
		<content:encoded><![CDATA[<p><strong>Dave:</strong></p>
<p>Ah, well instead of looking for the page name, just go by the $_GET variable:</p>
<p>Replace the following:</p>
<p><code>$path = $_SERVER[&#039;PHP_SELF&#039;];<br />
$page = basename($path);<br />
$page = basename($path, &#039;.php&#039;);</code></p>
<p>With this:</p>
<p><code>$page = $_GET[&#039;id&#039;];</code></p>
<p>Your HTML output will remain the same, we&#8217;re just changing where we check for the page name, so instead of the actual filename (less extension), we just use the ID variable.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15492</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 15 Jul 2008 23:17:34 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15492</guid>
		<description>Hi Kyle,

index.php - http://pastebin.com/m6bd3d71f
func.php - http://pastebin.com/d4efe2c66
navigation.php - http://pastebin.com/d77a79567

Thanks in advance :)</description>
		<content:encoded><![CDATA[<p>Hi Kyle,</p>
<p>index.php - <a href="http://pastebin.com/m6bd3d71f" rel="nofollow">http://pastebin.com/m6bd3d71f</a><br />
func.php - <a href="http://pastebin.com/d4efe2c66" rel="nofollow">http://pastebin.com/d4efe2c66</a><br />
navigation.php - <a href="http://pastebin.com/d77a79567" rel="nofollow">http://pastebin.com/d77a79567</a></p>
<p>Thanks in advance <img src='http://www.crucialwebhost.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15483</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Tue, 15 Jul 2008 22:35:56 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15483</guid>
		<description>&lt;strong&gt;@Dan:&lt;/strong&gt;

Could you post an example page on &lt;a href="http://pastebin.com/" rel="nofollow"&gt;pastebin&lt;/a&gt; or something?</description>
		<content:encoded><![CDATA[<p><strong>@Dan:</strong></p>
<p>Could you post an example page on <a href="http://pastebin.com/" rel="nofollow">pastebin</a> or something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15482</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 15 Jul 2008 22:32:43 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-15482</guid>
		<description>Thank you very much for this tutorial, works like a charm! Is there anyone who has an answer to Dirk's post - &lt;a href="http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-255" rel="nofollow"&gt;http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-255&lt;/a&gt;. I just wanted to ask about the same thing.</description>
		<content:encoded><![CDATA[<p>Thank you very much for this tutorial, works like a charm! Is there anyone who has an answer to Dirk&#8217;s post - <a href="http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-255" rel="nofollow">http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-255</a>. I just wanted to ask about the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umar</title>
		<link>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-10123</link>
		<dc:creator>Umar</dc:creator>
		<pubDate>Tue, 10 Jun 2008 10:44:57 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/you-are-here-using-php-to-highlight-navigation/#comment-10123</guid>
		<description>Very good concept. With a bit of tweaking you can do much more</description>
		<content:encoded><![CDATA[<p>Very good concept. With a bit of tweaking you can do much more</p>
]]></content:encoded>
	</item>
</channel>
</rss>
