Added getExtension method

The php version on the server is to low to use the native function