Content Management :: Updating with Word HTML
Moderator: General Moderators
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
Content Management :: Updating with Word HTML
Hello,
I have a website that i have to develop with the content being managed by the client who is not proficient in web design.
So im going to use PHP to make a content management application so that the client can be able to update the contents of the site. Now the thing is the content is being generated by Microsoft Word which will include Text and Images.
So my plan is to have the client convert word to HTML and use PHP to upload the HTML docs to the server. Then use PHP to include it stripping tags (ms tags anyway) into a template website design.
Now there probably some details to work out with formatting and stuff but
Am i out of my mind? just want to toss the idea around and get some feedback
hollar at me!
KEndall
I have a website that i have to develop with the content being managed by the client who is not proficient in web design.
So im going to use PHP to make a content management application so that the client can be able to update the contents of the site. Now the thing is the content is being generated by Microsoft Word which will include Text and Images.
So my plan is to have the client convert word to HTML and use PHP to upload the HTML docs to the server. Then use PHP to include it stripping tags (ms tags anyway) into a template website design.
Now there probably some details to work out with formatting and stuff but
Am i out of my mind? just want to toss the idea around and get some feedback
hollar at me!
KEndall
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
Or you could write something like phpBB code 
The HTML_BBCodeParser in http://pear.php.net seems to be nice.
The HTML_BBCodeParser in http://pear.php.net seems to be nice.
You could use the COM function to convert the DOC to HTML, so the client only needs to upload the word doc.
ONLY WORKS ON WINDOWS SERVER
Mark
ONLY WORKS ON WINDOWS SERVER
Code: Select all
<?
// 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("E:\\first.doc");
//html file location '8' mean HTML format
$word->Documents[1]->SaveAs("E:\\test_doc.html",8);
//closing word
$word->Quit();
//free the object from the memory
$word->Release();
$word = null;
?>