PHP XML

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
csavvy
Forum Newbie
Posts: 1
Joined: Tue Jul 31, 2007 3:27 pm

PHP XML

Post by csavvy »

hi there,
I am working on a website that is content driven (i.e. articles submitted by the enduser on a regular basis for posting to the web). kind like a newspaper online.

What would following be the right approach to achieve seamless results?
Here's The thought I had: Could I use a .php file with a include statement to call a .xml flat file to display in the article (.php file).

The .xml flat file would have the article (text)

I am currently using dreamweaver MX as my editing tool. Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You could store the article data in a file such as XML; you could simply convert the article to HTML; or you could store the article in a database. The choice really depends on other factors. Could you give a little more information about your site.
(#10850)
Post Reply