NYCPHP Meetup

NYPHP.org

[nycphp-talk] Database vs. XML

Steven Samuel steven at sohh.com
Tue Jul 16 16:53:21 EDT 2002


Well on my site we use XML and a database.

When I first launched my site, I did everything in PHP and noticed that in
peak times my site would slow down considerably. I realized that my content
didn't have to be dynamic; meaning, it doesn't really need to change
everytime the user hits refresh.  So I set up my site to run through all of
my articles in the database and create HTML files for them. Later, I
switched to XML so that outside site could pull the files and use it on
thier site.

Steven

-----Original Message-----
From: bruce at mtiglobal.com [mailto:bruce at mtiglobal.com]
Sent: Tuesday, July 16, 2002 6:25 AM
To: NYPHP Talk
Subject: [nycphp-talk] Database vs. XML


Hi!

I've been asking a number of people this question but haven't received a
satisfactory answer, so was wondering if anyone here can help.

Both a database (such as MySQL) and XML can be used for storing,
manipulating (XML w/ XSLT), rendering data.

How does one decide between the two?

One scenario I might be dealing with soon is taking product information
from a DOS system and throwing it out to either MySQL or XML for posting on
a web site.

Thanks.

- Bruce





More information about the talk mailing list