julisana wrote in php

Do you know...

...if there is a PHP function that will return the file name of the current file? Say...you're got a footer file that is included in 3 or four files. The whole point of said footer file is to display the "last modified" time of the calling file.

Without hardcoding a file name in filemtime(), how would one go about getting the name of the current file?

basename() seems to be giving me grief, so perhaps I wasn't using it right. I'll keep trying, but any help would be greatly appreciated.

Thanks so much!