<? 
$currentFile = $_SERVER[SCRIPT_NAME]; 
$parts = Explode('', $currentFile); 
$currentFile = $parts[count($parts) - 1]; 
?>
Published in: PHP
Download

Related snippets