I'm reading data from a file and need to run checks on its extension
I opened the file handle with fopen and given the handle to pathinfo()
$handle2 = fopen('files/ppGM.txt', 'r');
$fileinfo = pathinfo($handle2);
I need the array of informations from path info but the functions requires the first parameter to be string:
Warning: pathinfo() expects parameter 1 to be string, resource given in /home/kroman02/public_www/p1tma/index.php on line 21