Content Management :: Updating with Word HTML

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Content Management :: Updating with Word HTML

Post 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
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

poor man.. poor, poor man.. :P

it's plausable.. too bad your person has no idea what they're doing..
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

:(
User avatar
launchcode
Forum Contributor
Posts: 401
Joined: Tue May 11, 2004 7:32 pm
Location: UK
Contact:

Post 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!)
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Or you could write something like phpBB code :)

The HTML_BBCodeParser in http://pear.php.net seems to be nice.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post 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?
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

Post 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.
Post Reply