View Full Version : Php & Xml
battman21 08-20-2002, 11:10 AM Have many of you played with PHP & XML? I have just been down the road of building forms and functionality on-the-fly using XML, then writing it back out.
The PHP parser is ok but to control lots of XML i had a massive multi-dimensional array that was quite hard to get my brain around.. i got it to work and it's all cool, but i am wondering if others have a different way of tackling PHP / XML or if they have their own classes etc to handle such stuff (i wrote my own, but want to compare it :stickout
Cheers..
...and this is first actual useful thread on this forum .. unlike the useless one started by davehooper.net :D
webarama 08-20-2002, 11:35 AM Originally posted by battman21
...and this is first actual useful thread on this forum .. unlike the useless one started by davehooper.net :D
hey, I resemble that remark :)
battman21 08-20-2002, 11:53 AM Can't keep your mitts off can you..
You and Net Platter are one of a kind.. :D
mind21_98 08-20-2002, 08:12 PM What a coincidence, I was reading the documentation on PHP's XML parser. It seems a total pain in the arse. I was considering just reading the information from the XML file for a site I'm planning instead of using a database for speed purposes. :(
battman21 08-20-2002, 08:47 PM It's do-able.. and yes, a pain in the arse! Once you get your brain around it it's not so bad.. except expect some serious arrays. If you need any pointers let me know.
-- battman21
Evolve3Media 08-20-2002, 09:06 PM Ive used asp with xml.
mind21_98 08-20-2002, 09:15 PM Originally posted by Evolve3Media
Ive used asp with xml.
Poor thing! :(
battman21 08-20-2002, 09:18 PM Originally posted by mind21_98
Poor thing! :(
Hear Hear!
Never want to go down that path...
mind21_98 08-20-2002, 09:25 PM Originally posted by battman21
Hear Hear!
Never want to go down that path...
Hopefully he used Chilisoft ASP or something instead of a real NT box. ;)
battman21 08-20-2002, 09:45 PM Wrong blasted window.. sorry!
battman21 08-20-2002, 09:47 PM Heheh.. let's hope he sees the light though.. come over from the dark side.. ;)
mind21_98 08-20-2002, 09:55 PM Your name isn't "3 of 5". It's "battman21". The Borg are trying to seduce you! ;)
mind21_98 08-21-2002, 04:13 AM I'm well on my way to getting XML working. About 30 minutes ago I coded something that parses all the XML files in a user's directory and generates a mega XML file that will eventually be fed into Sabletron. (It's at http://cms.translator.cx/u/mind21_98 if you want to take a look, you may need to View Source though because it's sending as HTML). :D
Soon it will show the number of replies to that file, the article date and the first paragraph of the article or so as well as being properely sorted in descending order by the date of creation.
dreamrae.com 08-22-2002, 10:15 PM theres some scripts @ hotscripts.com . i wanted to add hackinabox.org's news head lines to my site and i needed a script that could convert some xml values into html.. goto hotscripts, click on xml, click on Scripts and Programs, then click on parsers, then goto php...if u wanna use another langage or just want to see what they have go here 1st:
http://www.hotscripts.com/XML/Scripts_and_Programs/Parsers/
dreamrae.com 08-22-2002, 10:15 PM Originally posted by Evolve3Media
Ive used asp with xml.
PS: hahahahahahahahahahahahahahahahahahahahahahahahaha :stickout :stickout
CagedTornado 08-23-2002, 01:45 AM If you don't like Sablotron and want a different way to access XML data, check out this nifty class:
http://phpclasses.websapp.com/browse.html/package/96.html
This takes XML data and makes it into objects named as the tags in the XML data, with the cdata for values. It's VERY interesting to see it in action. Works great if you already know the tags available.
Dan
interactive 08-23-2002, 02:01 AM xml is a bit hard to get used to with php but after that its kewl.
mind21_98 08-23-2002, 04:11 AM Originally posted by CagedTornado
If you don't like Sablotron and want a different way to access XML data, check out this nifty class:
http://phpclasses.websapp.com/browse.html/package/96.html
This takes XML data and makes it into objects named as the tags in the XML data, with the cdata for values. It's VERY interesting to see it in action. Works great if you already know the tags available.
Dan
I thought that package was obsolete (from what I saw on the author's site)? Is it still usable?
|