473,385 Members | 1,817 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,385 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 2870
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 &...
1
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...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.