With this code snippet:
list($first, $last) = explode('/', substr($PATH_INFO,1));
echo "$first";
echo "$last";
this will grab the first and second content after the index file..
basically:
domain.com/index.php/the/web
$first = the
$last = web
With that said, how would I strip the url for more slashes
example:
domain.com/index.php/the/web/I/internet/
$first = the
$last = web
$? = I
$? = internet
--
Basically Im trying to figure how to make a website that can cross-reference a database using the url. I was trying to mimick Automart.com
automart.com/browse-cars/h/honda/all/1900-1989/1-10000/mid-west/