hiding file extention it self

maxieatroy

New Member
i looking for your help pleasei use simple php code like:\[code\]$file = $_SERVER["SCRIPT_NAME"];//echo $file;$break = Explode('/', $file);$pfile = $break[count($break) - 1];echo $pfile;\[/code\]than output $pfile e.g. fileforme.phpbut that i want is output of $pfile become fileformebecause i want use it to:\[code\]$txt['fl']= $pfile ;\[/code\]how to do? or there are any another better way?Regards,
 
Back
Top