How do i:
I have a php script, say example.php,
how do i make my script display the filename within the file, so that for example somewhere in the script i have echo "$filename"; the filename is displayed on the screen (my echo script is probably wrong but im rushing this!)
THEN!!! how do i take away the ".php" from the file name and replace it with .html
so that the page example.php echo's example.html
and the page template.php echo's template.html
Thank you all, your help is much appreciated