I was wondering if there was a way to find what the name of the current file is? If so, could you show me?
$_SERVER["PHP_SELF"]
To display the full, complete path on the server:
echo __FILE__;
To display just the filename without any path information:
echo basename(__FILE__);
To display the web-path, relative to the document root:
echo $_SERVER['PHP_SELF'];