Dumb question, if I have a script that I include on each page of my site, how I that script display the current filename that the script is included in?
For example, when included in index.php, it would display "index.php", but when it's in gallery.php, it would say "gallery.php".
I've done this before, but I forgot how and I can't find anything. Thanks in advance.