How to read clean data from .docx or .doc file?

$file_url="http://www.abc.com/upload/test.docx";
$doc_data = file_get_contents($file_url);

it's gives out put like

�T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö������(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���������PK�����!�‚Š¼ú��������[Content_Types].xml

how to get clean data like text file??

Recommended Answers

The Word Convert Class does a good job of converting to the different formats that Word can produce (including txt and htm).

http://www.weberdev.com/get_example-3211.html

Jump to Post

All 4 Replies

firstly convert this file in txt formate than we esaily view in php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.