I have a function that works in PHP v 5.3 and above but wondering what is the best method for doing this with a version below 5.3. My PHP version is 5.2.17
Here is my function for PHP v5.3
if (strstr($file2, '.', true) == strstr($file, '.', true)){
$imagename = $file2;
}