This seems like a common questions but none of them seem to be what i\'m looking for. If there is a website:
www.example.com/test.php
I want to pu
$file = $_SERVER["SCRIPT_NAME"]; $break = explode('/', $file); $pfile = $break[count($break) - 1];