הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה קטנה (https://hosts.co.il/forums/showthread.php?t=109591)

MAORBARI 17-11-15 16:54

עזרה קטנה
 
שלום לכם
רציתי לדעת במידה ויש כאן מישהו שיודע איך
להמיר קובץ וורד ל HTML ושזה יהיה ברמת ה PHP
שאני יוכל דרך PHP לעשות את ההמרה הזאת
אשמח לקבל עזרה תודה רבה.

bomb 17-11-15 17:50

http://word2cleanhtml.com/

Tyler 18-11-15 10:59

PHP קוד:

<?php
// htmlviewer.php
// convert a Word doc to an HTML file
//$DocumentPath = str_replace("\\", "\", $DocumentPath);
$DocumentPath="C:/Archivos de programa/Easyphp/www/subidas/curric.doc";
// create an instance of the Word application
$word = new COM("word.application") or die("Unable to instantiate application object");
// creating an instance of the Word Document object
$wordDocument = new COM("word.document") or die("Unable to instantiate document object");
$word->Visible 0;
// open up an empty document
$wordDocument $word->Documents->Open($DocumentPath);
// create the filename for the HTML version
$HTMLPath substr_replace($DocumentPath'txt', -33);
// save the document as HTML
$wordDocument->SaveAs($HTMLPath3);
// clean up
$wordDocument null;
$word->Quit();
$word null;
// redirect the browser to the newly-created document header("Location:". $HTMLPath);
header("Location:"$HTMLPath);
?>


eliron 22-11-15 14:48

הבעיה נפתרה?


כל הזמנים הם GMT +2. הזמן כעת הוא 04:45.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ