Reading DOC file in php

  read PDF and DOC files using PHP

Reading PDF Files

 
$content = shell_exec('/usr/local/bin/pdftotext '.$filename.' -');
 
 

Reading DOC Files

 $content = shell_exec('/usr/local/bin/antiword '.$filename);