outputting XML from PHP

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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:
    [url]http://www.tonymarston.net/php-mysql/sablotron.html[/url] 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"

    Aarron Guest

  2. Similar Questions and Discussions

    1. Outputting a CFC Component
      Can someone please help me with this simple request. I get an error message when I try and output the results of a simple CFC Component. Here is...
    2. Problems outputting to PDF and PS
      I apologize if this isn't the correct newsgroup for this inquiry but here goes. I am trying to output textfile (from Appleworks) to either a PDF...
    3. Outputting an animation 101
      I created a home page via ImageReady 7.0 and there is an image on the page that is an animation. It is basically a photo that is fading from 100% to...
    4. [PHP] XX outputting X signs
      Would it not make sese to store the number as a decimal and have the '£' added at output? George, in Oxford, where £££=pints
    5. £ outputting £ signs
      Hello all Can someone tell me where i am going wrong here. I am trying to echo a '£' to the screen which has come from a database field. I get the...
  3. #2

    Default Re: outputting XML from PHP

    Aarron <spaceboy_2001@hotmail.com> wrote in message news:<4PNSa.474100$3C2.12904343@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:
    > [url]http://www.tonymarston.net/php-mysql/sablotron.html[/url] 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
    [url]http://www.tonymarston.net/[/url]
    Tony Marston Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139