|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
convert MS Word to HTML format
how can i convert a MS Word document to HTML format using either PHP,Java or PERL?? please help.
|
|
#2
|
|||
|
|||
|
Found sumthing
I've found this script froma site but it didn't work for me. My php.exe got an error and gave me this msg:
" Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.14 Server at localhost Port 80" this is what i used... my form looks like this: <html> <head> <title>Upload</title> </head> <body> <form action="convertor.php" method="get" name="form" target="_self" enctype="multipart/form-data"> <strong>Please select the file to be uploaded</strong> <p> <input name="browse" type="file" size="45" maxlength="200"> <input name="Upload" type="submit" id="Upload" value="Upload"> </form> </body> </html> and this is my convertor.php: <?PHP // starting word $word = new COM("word.application") or die("Unable to instanciate Word"); // if you want see thw World interface the value must be '1' else '0' $word->Visible = 1; //doc file location $word->Documents->Open("$form"); //html file location '8' mean HTML format $word->Documents[1]->SaveAs("g:\\test_doc.html",8); //closing word $word->Quit(); //free the object from the memory $word->Release(); $word = null; ?> Please help... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > convert MS Word to HTML format |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|