sounds strange.
Are you using: strlen($file_name);
Looks like your variable name is wrong,
since this is an uploaded file, you have to remember that the file name sting is in _name,
eg. file input is called: file_name
after uploading to the server, the variable name is:
$file_name_name
To get the filename without extension you could just explode the string,(quick solution)
$NewString = explode(".", $file_name);
this breaks the string up in parts at the dots(.) and stores them in an array.
so just echo $NewString[0] //Returns eg. "details"
regards Thomas