hai provato ad usare pathinfo()?
ti ritorna anche l'estensione se è la path di un file.
Eventualmente se sei su linux puoi tentare con un
$result = system ( "file $nomefile" );
hai provato ad usare pathinfo()?
ti ritorna anche l'estensione se è la path di un file.
Eventualmente se sei su linux puoi tentare con un
$result = system ( "file $nomefile" );
In a world without walls and fences - who needs windows and gates ?