Get current Page Name in php

The basename($_SERVER[‘PHP_SELF’]) function is used to get current pagename only.

basename($_SERVER[‘PHP_SELF’]);

You can refer this link http://qualitypointtech.net/forum/viewtopic.php?f=25&t=366 for more information.

Posted in Php