Here's something that must be very simple to accomplish but I can't find the solution anywhere.
I'd simply like to store the name of the document's file in a variable. Of course, PHP is to guess the document's name. So let's say I have a script at http://www.thissite.com/boring.php, and I'd like it to just print "boring" by just looking at the URL, stripping it of domain name, path and extension...
Trimming down the string wouldn't be difficult to figure out, but how do I store the document's name in a variable for starters?
Thanks a million...