PHP Get current filename as variable
Get current filename as variable
<?
$currentFile = $_SERVER[SCRIPT_NAME];
$parts = Explode('', $currentFile);
$currentFile = $parts[count($parts) - 1];
?>
<?
$currentFile = $_SERVER[SCRIPT_NAME];
$parts = Explode('', $currentFile);
$currentFile = $parts[count($parts) - 1];
?>