yea, alan's example is better suited to your needs atm, but if you needed multiple 'imageCacheResults' PHP DOM is the way to go, it will get messy pratting around with strings and loops and god knows what, although you would have to create a new root, i.e.:
<?xml version="1.0"?> <imageCacheResults> <imageCacheResult> <url>value of url</url> <thumbnail>value of thumbnail</thumbnail> </imageCacheResult> <imageCacheResult> <url>value of url</url> <thumbnail>value of thumbnail</thumbnail> </imageCacheResult> </imageCacheResults>
bah humbug im going to bed, im far to tired my brain is farting out errors again
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
Sorry for not being so clear - I couldn't figure out what in the world was going on but after fooling with it I was able to pinpoint what is happening.
I've got a thumbnail creation script that fires off prior to the xml output so I'm having to set a content type header twice - and it's not working the second time. Is there any way to avoid this conflict?
Yeah, save the image to a file! You cannot output two separate content types within the same request. So, cache the thumbnail and link to that in your thumbnail parameter. Else, you'll have to turn on the override switch (header).
__________________ Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook