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

  1. #1

    Default php and xml

    hi,

    this is a bit of an advice thing.
    iv just finished a degree in multimedia, where i learned the usuals...
    html
    flash
    director
    javascript

    i also learned php and i have been told that i should get to grips with xml
    as this combination
    is verry useful

    so iv been messing arround with xml for the past couple of days trying to
    figure out how the two would work together.

    i just cant grasp the idea..

    on thought i have had is that you could use php with a database to generate
    xml but surely that would not be parsed as xml as it would have the .php
    extension..

    as i say im strugling to get this one?

    any ideas or url's

    cheers

    Greg Brant


    greg brant Guest

  2. #2

    Default Re: php and xml

    > so iv been messing arround with xml for the past couple of days trying to
    > figure out how the two would work together.
    what about xsl-t?

    s


    --
    Using M2, Opera's revolutionary e-mail client: [url]http://www.opera.com/m2/[/url]
    steffen horst Guest

  3. #3

    Default Re: php and xml

    Yes, the data going between a web service and its client app is XML. In
    fact, I'm working on some stuff now using NuSOAP (a php class file on the
    server) and a vb.net client. Works very well, even though nusoap is still
    sortof in its infancy.
    > In web development, XML may be used in (at least) two ways :
    > - in web services protocols (?) like XML-RPC
    > - as a way to store content, which may later be parsed and transformed
    > into (x)html. BTW, xhtml is more or less html 4 rewritten in valid XML.

    topls64 Guest

  4. #4

    Default Re: php and xml

    steffen horst <moin666@email.com> wrote in message news:<oprr0fowea822tll@news.t-online.de>...
    > > so iv been messing arround with xml for the past couple of days trying to
    > > figure out how the two would work together.
    >
    > what about xsl-t?
    >
    > s
    I am currently developing a web application which uses PHP to create
    XML files from a MySQL database, then uses XSL transformations to
    create HTML files. This completely separates the presentation layer
    from the business layer. Take a look at the following articles for
    more details:

    [url]http://www.tonymarston.net/php-mysql/domxml.html[/url] - Using PHP's DOM XML
    functions to create XML files from SQL data

    [url]http://www.tonymarston.net/php-mysql/sablotron.html[/url] - Using PHP's
    Sablotron extension to perform XSL Transformations

    Tony Marston
    [url]http://www.tonymarston.net[/url]
    Tony Marston Guest

  5. #5

    Default Re: php and xml

    hi
    >> what about xsl-t?
    > I am currently developing a web application which uses PHP to create
    > XML files from a MySQL database, then uses XSL transformations to
    > create HTML files. This completely separates the presentation layer
    > from the business layer. Take a look at the following articles for
    > more details:
    i save reviews of records in xml-files. to transform these files into valid
    html i'm using sablotron too. that's very interesting, even if there's no
    other useful format to transform these xml-files to.

    s


    --
    Using M2, Opera's revolutionary e-mail client: [url]http://www.opera.com/m2/[/url]
    steffen horst Guest

  6. #6

    Default PHP and XML

    Is there a module or library provided to PHP that parses XML?

    TIA

    w i l l
    w i l l Guest

  7. #7

    Default Re: PHP and XML

    w i l l:
    > Is there a module or library provided to PHP that parses XML?
    [url]http://www.google.com/search?q=XML+site:www.php.net&l=en[/url]

    :P

    André Nęss
    André Nęss Guest

  8. #8

    Default Re: php and xml

    in article [email]vgm8fgj9hkb683@corp.supernews.com[/email], greg brant at
    [email]greg_brant@yahoo.co.uk[/email] wrote on 8/7/03 8:56 pm:
    > hi,
    >
    > this is a bit of an advice thing.
    > iv just finished a degree in multimedia, where i learned the usuals...
    > html
    > flash
    > director
    > javascript
    >
    > i also learned php and i have been told that i should get to grips with xml
    > as this combination
    > is verry useful
    >
    > so iv been messing arround with xml for the past couple of days trying to
    > figure out how the two would work together.
    >
    > i just cant grasp the idea..
    >
    > on thought i have had is that you could use php with a database to generate
    > xml but surely that would not be parsed as xml as it would have the .php
    > extension..
    >
    > as i say im strugling to get this one?
    >
    > any ideas or url's
    >
    > cheers
    >
    > Greg Brant
    >
    >
    Hi Greg

    The Extension is not relevant as far as XML is concerned you could echo all
    the constituent parts out in PHP and it will be parsed as XML provided you
    create well formed XML and declare it as XML in the first line of code. I
    did just this before I realised the power of the PHP XML DOM

    XML is a great way to get data sets into Flash

    EG In flash
    Create new XML object
    Load a Dynamically Created XML doc (from PHP or jsp or ASP or anything)
    Once Loaded you can use the DOM as the Dynamic element of your flash piece.


    Richard



    Richard Hulbert Guest

  9. #9

    Default PhP and XML

    I have recently just started using php and understand the concept behind server
    side scripting. I was arguing with a co worker about which would be better:

    If I were to use php to run a query on some data in MySql and pass the data
    back to flash...now if I had mutliple queries to run would it be more efficient
    to run 1 large query on the data and then store that data in an array, lets
    say, and search through it locally.

    OR

    Call multiple times to a php script that has different queries to the database?

    Is there a right or wrong answer?

    Thanks in advance!



    poisoniver Guest

Posting Permissions

  • You may not post new threads
  • You may not 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