Page 1 of 1

Content Management :: Updating with Word HTML

Posted: Wed May 12, 2004 1:24 pm
by kendall
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

Posted: Wed May 12, 2004 6:24 pm
by d3ad1ysp0rk
poor man.. poor, poor man.. :P

it's plausable.. too bad your person has no idea what they're doing..

Posted: Wed May 12, 2004 7:38 pm
by tim
:(

Posted: Wed May 12, 2004 9:21 pm
by launchcode
You might be better off installing and using Macromedia Contribute for them! Or build them a CMS with an nice enhanced edit form (like HTMLArea offers) so they can at least only modify certain parts of the content (i.e. that which you let them!)

Posted: Wed May 12, 2004 9:24 pm
by Buddha443556
Why not use something like HTMLarea or TypeTool? I think HTMLarea can even strip MS tags though I could be wrong about that. It doesn't take much to implement either.

Posted: Thu May 13, 2004 1:04 am
by timvw
Or you could write something like phpBB code :)

The HTML_BBCodeParser in http://pear.php.net seems to be nice.

Posted: Thu May 13, 2004 1:14 am
by feyd
I'd have to agree with timvw here. I built a similar system of bbCode for one of my clients, they love it. Nice and simple, yet they can't really fsck things up that much because of how it works.

Posted: Thu May 13, 2004 3:17 am
by JayBird
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

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; 

?>
Mark

Posted: Thu May 13, 2004 5:48 am
by dave420
ew! ew! ew! ew! microsoft word-generated HTML! ew! ew! ew! ew! ew!

*ahem*

Are you sure there's no other way? I mean, I'm no anti-MS crazy person, but MS Word's HTML is HORRIBLE. Would you really want that on your server?

Posted: Thu May 13, 2004 7:09 am
by lazy_yogi
interesting module from pear => "HTML_BBCodeParser"

Though you can get javascript pages that can actually display the markup in your browser as you type it. It feels like you're typing straight into ms word and saves it as html.