This should do it for you:
<?php
$script = substr(strrchr($PHP_SELF,"/"),1);
?>
Basically, I used strrchr() to get everything after the last slash ("/"), then used substr to remove the first character (An extra forward slash "/")... You could remove the substr() if you wanted to have the forward slash at the beginning of the filename.
Hope this helps,
-Josh B