Re: outputting XML from PHP
Aarron <spaceboy_2001@ hotmail.com> wrote in message news:<4PNSa.474 100$3C2.1290434 3@news3.calgary .shaw.ca>...[color=blue]
> Today I decided to teach myself both PHP and XML ... so I decided to
> make a little address book. After I finished it I found this:
> http://www.tonymarston.net/php-mysql/sablotron.html which describes more
> or less what I did.[/color]
I wonder who wrote that?
[color=blue]
> The main difference is that users are able to add entries into my
> address book. When an entry is added I get all of the address book info
> as post data. I take this data then print out a whole new xml file.
>
> Is there a better way to do this? Right now 95% of the PHP I wrote
> saves a new XML file ... the other 4 lines transform the XML with some
> XSL and displays the results.
>
> I suppose Im too used to working with databases where I can (more or
> less) write "Insert Whatever into AddressBook"[/color]
I would suggest storing your data in a database, such as MySQL, and
using XML after extracting portions for inclusion in a web page. XML
is not a DBMS therefore it does not have the power and flexibility of
a DBMS.
Tony Marston
outputting XML from PHP
Collapse
This topic is closed.
X
X
-
Guest replied -
outputting XML from PHP
Today I decided to teach myself both PHP and XML ... so I decided to
make a little address book. After I finished it I found this:
http://www.tonymarston.net/php-mysql/sablotron.html which describes more
or less what I did.
The main difference is that users are able to add entries into my
address book. When an entry is added I get all of the address book info
as post data. I take this data then print out a whole new xml file.
Is there a better way to do this? Right now 95% of the PHP I wrote
saves a new XML file ... the other 4 lines transform the XML with some
XSL and displays the results.
I suppose Im too used to working with databases where I can (more or
less) write "Insert Whatever into AddressBook"
Tags: None
Leave a comment: