Thursday, March 01, 2007

"What's my Name?" Asks PHP

$_SERVER['PHP_SELF'] returns the PHP filename in which the script is running. It turns out to be handy at many occasions when you need to use the name of the PHP file in which the script is running.