Ask a Question related to PHP Programming, Design and Development.
-
greg brant #1
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
-
steffen horst #2
Re: php and xml
> so iv been messing arround with xml for the past couple of days trying to
what about xsl-t?> figure out how the two would work together.
s
--
Using M2, Opera's revolutionary e-mail client: [url]http://www.opera.com/m2/[/url]
steffen horst Guest
-
topls64 #3
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
-
Tony Marston #4
Re: php and xml
steffen horst <moin666@email.com> wrote in message news:<oprr0fowea822tll@news.t-online.de>...
I am currently developing a web application which uses PHP to create>> > 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
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
-
steffen horst #5
Re: php and xml
hi
i save reviews of records in xml-files. to transform these files into valid> I am currently developing a web application which uses PHP to create>> what about xsl-t?
> 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:
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
-
w i l l #6
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
-
André Nęss #7
Re: PHP and XML
w i l l:
[url]http://www.google.com/search?q=XML+site:www.php.net&l=en[/url]> Is there a module or library provided to PHP that parses XML?
:P
André Nęss
André Nęss Guest
-
Richard Hulbert #8
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 Greg> 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
>
>
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
-
poisoniver #9
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



Reply With Quote

