Convert MsWord document (*.doc) to text

is there any way in PHP or ASP in which I can convert a Microsoft Word document into plain text?

this would later be saved in a database row so that i can do a fulltext search with mySQL. i don’t need the formatting or images… the user can get that by opening the link to the original doc file.

(i’d like to have the user just input the doc file + the user already has an archive of docs which would need to be added to this database)