<?php
$t=explode("/",$_SERVER['SCRIPT_NAME']);
$t=explode(".",$t[count($t)-1]);
$strScriptName=$t[0];
$strScriptExtension=$t[1];
?>