Hi all. I am trying to put the name of the php file the user is currently viewing in to a var.

Like if you are at www.site.com/test/somepage.php

I want to be able to print "somepage.php".

I know you can get system vars that show the whole url but is there a way to get just that file name?

Thanks,

ROb

    Write a Reply...