How to read a Word file without losing its formatting?
Situation: The client wants to upload a Word file and save it all into the database as text (for future searches and similar).
Note: Using PHP only.
How to read a Word file without losing its formatting?
Situation: The client wants to upload a Word file and save it all into the database as text (for future searches and similar).
Note: Using PHP only.
To read without losing formatting, save the record to the database with a field containing the extracted content in plain text format and the original file in a specific location using the record ID.
Use the search field for content and if you want to retrieve the file via download you can read the original file by the ID and send it via PHP.