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

Hi
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 ranawatAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Poster seems to have stopped posting.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.