C'è la funzione file() che fa al tuo caso



Codice PHP:
$fileContent file('file_input_em.txt');

foreach (
$fileContent as $line) {
  echo 
"Riga input - id : " $line   "
"
;  //#
  //verifica_riga($id_file, $db, $file_em_down, $file_em_ko); 

Ciao
Daniele