I'm trying to getting php to output what page I'm on. For example, say I'm on the page
index.php or index.shtml or links.php or page5384.html
So far this is my php:
<body>
Welcome!<br>
<?php
$currentpage=basename(filepath);
print("You are on the page: $currentpage");
?>
</body>
HERE'S WHAT I GET:
Welcome!
Warning: Use of undefined constant filepath - assumed 'filepath' in c:\program files\apache group\apache\htdocs\mytest.php on line 6
You are on the page: filepath
I'm not sure what to replace filepath with