
		<h2>Understanding $_PATH</h2>
		<p><pre><? print_r($_PATH); ?></pre>
		<p><a href="http://greg-j.com/2008/01/05/php-mod_rewrite-scheme-using-_path/">$_PATH</a> is something I did some time ago as my answer to getting and parsing urls for use with mod-rewrite. It's pretty self explanatory once you know the finer points of how it works. Some of those points are:</p>
		<ol>
			<li>$_PATH[0] always displays the number of segments in a url. If the url is /one/very/segmeneted/url, $_PATH[0] will be 4. $_PATH[0] is always set.</li>
			<li>$_PATH[1] is the first segment of the URL, on this page it is "<?=$_PATH[1]?>". If $_PATH[0] is set as 0, $_PATH[1] is not set.</li>
		</ol>
		<h2>Still foncused?</h2>
		<p>You can ask any question about $_PATH you like <a href="http://greg-j.com/2008/01/05/php-mod_rewrite-scheme-using-_path/#comments" target="_blank">here &raquo;</a></p>
