how can i echo the name of page (e.g. www.abcd.com/something.php) into the text of my website? for example, using that url i would want to be able to echo 'something' (without the file extension). is that possible?
$a = explode(".",basename($_SERVER['PHP_SELF'])); echo $a[0]; -or- echo basename(substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],"."))); PHP: