简体   繁体   中英

FileToText Class always generates this error “Cannot send headers; headers already sent in , line 0'”

I downloaded this php class filetotext here ( http://www.phpclasses.org/package/8908-PHP-Convert-DOCX-DOC-PDF-to-plain-text.html ) which allows me to convert pdf and word into a php string that I can easily parse. But it has this php function flush(); ob_flush(); in decodePDF() method which always generates this exception

( ! ) Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in , line 0' in C:\\wamp\\www\\Jobs\\trunk\\library\\Zend\\Controller\\Response\\Abstract.php on line 323

How can I solve this issue? Thanks

参见Abstract.php.Don不要在设置标头之前使用echo。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM