I've kinda worked out a little
Say my $_SERVER['SCRIPT_FILENAME'] is
/home/ye6e7cc/public_html/misc/test.php
I got it to echo:
Home -> misc -> test
by using the following code:
<?
$url = $_SERVER['SCRIPT_FILENAME'];
$url = str_replace("/home/ye6e7cc/public_html/","",$url);
$url = str_replace("/"," -> ",$url);
$url = str_replace(".php","",$url);
echo "<a href=test.php>Home</a> -> $url";
?>
That's nearly what I wanted. Is it still possible to have the "misc" link to, say www.domain.com/misc ??
Thanks 🙂
Ye