473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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"

Jul 16 '05 #1
1 2866
Aarron <sp***********@hotmail.com> wrote in message news:<4P***********************@news3.calgary.shaw .ca>...
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.
I wonder who wrote that?
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"


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
http://www.tonymarston.net/
Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Wright | last post by:
How can VBA prevent the advisory popup "Outputting to ..." when using Access 2002: DoCmd.OutputTo acOutputReport, stDocName, acFormatRTF ? Set Warnings is ignored. TIA Peter Wright
20
by: tigrfire | last post by:
I need the following code to return a string of character stored in array and also return the size of the array. I want to do it without using pointers and so far have the character storing working...
4
by: Jonathan | last post by:
I have a client solution that requires data and associated files to be stored with data in a database. As such, I have a situation where JPEG thumbnails/images that are stored as BLOBs (image...
5
by: Andrei Pociu | last post by:
I have a major doubt about outputting text in ASP .NET when using code behind. I know most of the output you gain from a code behind file (.aspx.cs) is outputted to the Webform (.aspx) using...
5
by: Lyle A. Sieren | last post by:
Hello! Is there a way to output text in a unix format from vb.net? I am trying to complete a CIM load in Progress and I need the data to be in unix format. I tried using the following code...
13
by: Jacek Dziedzic | last post by:
Hello! I have a piece of code that needs to display a formatted table of pointers using streams, with the pointers represented as hex values. It looks more or less like this: #include...
2
by: Andy | last post by:
Hi I'm really stuck outputting a double number to the console with three decimal places if the furthest right value is a zero. I can coutput the number 4.546 as 4.546 but then if I output...
2
by: cephelo | last post by:
I have no problems outputting the attribute value when the node is in context, for example, @id when an <status> node is in context. However, I am having trouble outputting it in a <xsl:value-of...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
12
by: billelev | last post by:
This is probably a very easy question to answer: I have been outputting some text to a message box, similar to the following: strOutput = "---" & Chr(10) & Chr(10) strOutput = strOutput &...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.