phpJune 8, 2006 2:30 am
How to Get URL Page Name in PHP
$file = basename($_SERVER[’PHP_SELF’]);
Will return the file name with extension;
There is a way to get the file name without extension too:
http://ca3.php.net/manual/en/function.basename.php
It works..Thanks!!
Comment by krishna ramadugula — October 22, 2009 @ 5:05 am