is their a better way of doing this?
i need to get current filename, strip the extension and add the same name but with .inc on the end
$fname = $_SERVER["SCRIPT_NAME"];
$base = rtrim($fname,'.php');
$ext = array($base,'inc');
$data = implode(".",$ext);
echo $data;