Photo Gallery

[insert_php]$url = $_SERVER[‘REQUEST_URI’];
if ($url == “/photo-gallery/”) {
echo “You are here: Photo Gallery

“;
}
else {
echo “

“;

echo “You are here: “;

$url = explode(‘/’,$url);
$limit = count($url);
$limit–;
for ($myi = 2; $myi < $limit; $myi++) { if ($myi < $limit-1) { echo "” . ucwords(str_replace(“-“,” “,$url[$myi])) . “ -> “;
}
else { echo “” . ucwords(str_replace(“-“,” “,$url[$myi])) . “

“; }
}
}
[/insert_php]