• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 44
  • Last Modified:

using word and word file save as web htm format and this folder Data upload and store into database

I am vishal from india at rajasthan.
i am working on online Exam Portal in php language and i am stuck in uploading bulk data using word file but word file save as web format .htm data and it's generate a folder and many fiels in this folder like word insert images and xml files so using this folder how i upload data into mysql database.

please please give me solution of this problem.

Thank You
vishal ranawat
vishal ranawat
  • 2
1 Solution
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
What you're describing is a multi-step process.

If a client hired me to to this, here's how I'd handle it.

1) Setup HTML/PHP to upload files into some directory. This could would only allow uploading certain formats, like .doc + .docx files.

2) Use the following command to identify new file uploads instantly...

inotifywait -mrq -e CLOSE_WRITE /upload-directory-path

Open in new window

3) When inotifywait notifies you a new file has both uploaded + finished transferring all data (CLOSE_WRITE fires)... then... convert the file from .doc or .docx or any other format into HTML, using an appropriate convertor.

I'd use LibreOffice for this, as you can run LibreOffice in headless mode (soffice command), to do your conversions...

https://www.techrepublic.com/blog/linux-and-open-source/how-to-convert-doc-and-odf-files-to-clean-and-lean-html is one link I quickly turned up which gives an example.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Poster seems to have stopped posting.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now