<html>
<body bgcolor=lightyellow>
<h2>The Environment Variable PATH_INFO</h2>
<br><br>
<?php
	error_reporting(0);									#turn off all errors

	$params = $_SERVER['PATH_INFO']; 

	if (! $params)
	{
		print "Click on <a href=0path_info.php/Sam/Sultan> 0path_info.php/Sam/Sultan </a>";
	}
	else
	{	
		print "Your PATH_INFO parameter is: <b>$params <br>";
		print "<br><table border=1>";
		$params    = substr($params,1);					#get rid of leading /
		$paramList = explode('/',$params);				#split on any additional /
		foreach($paramList as $param)
			print "<tr><td><b>$param </td> ";
		print "</table>";
	}
?>

<?php include "../include.php"; ?>		<!-- hyperlink to see the code -->
</body>
</html>