David Bethel
I added some stuff to the market_text.php page that you can get the retruns in XML - may be useful for ppl doing parsers etc. If the XML is not complient just mention it. It seemed to work in IE6 and a few XML browsers i downloaded.

CODE
http://cgi.kjcgames.com/orders/markets_text.php?format=xml


BTW its quite possible i missed the whole point with XML so if its a total cludge up then i will not be surprised.
Also you will have to wait for mica to upload the new file before it will work.
ptb
I don't actually get anything different than without the format=xml bit... in firefox or ie 6.

Unless it's some wierd cacheing somewhere.

http header viewer happy.gif http://web-sniffer.net/?url=http%3A%2F%2Fc...niffer%2F1.0.20
David Bethel
QUOTE
Also you will have to wait for mica to upload the new file before it will work.
ptb
that'll teach me to click links before i finish reading the post happy.gif
David Bethel
looks like its on now
Steve-Law
Yup, that works.
Steve-Law
Would it be a huge pain to add a <type> under <item> (perishable, lifeform, perishable lifeform, normal) then everything we need is in one file (and market message of course ;) Perhaps even <item> <size> as well?.

Just for completeness ;)
ptb
QUOTE (Steve-Law @ Mar 14 2005, 03:54 PM)
Would it be a huge pain to add a <type> under <item> (perishable, lifeform, perishable lifeform, normal) then everything we need is in one file (and market message of course wink.gif  Perhaps even <item> <size> as well?.

as to perishable / lifeform my preference would be that it's two tags either <perishable>true</perishable or <lifeform>true</lifeform> or both, but i'd be happy with just type smile.gif

The xml looks fine though happy.gif
Steve-Law
I didn't necessarily mean those should be the data given, just explaining what I meant by type smile.gif But doing it in English (rather than boolean) would make the page more flexible and readable by humans.
ptb
QUOTE (Steve-Law @ Mar 14 2005, 04:06 PM)
I didn't necessarily mean those should be the data given, just explaining what I meant by type smile.gif But doing it in English (rather than boolean) would make the page more flexible and readable by humans.

Bah Humans
David Bethel
I can do the type without too much problem but not the mus as its not on the market bit of the website - so i would have to do that later as it involves the phoenix editor code that is a bit in the middle of something at the moment.
ptb
Type is good happy.gif we can guess size based on id and name for most stuff, thats how I do it atm anyway. Special cases being tweaked after of course.

Type is important though smile.gif
ptb
Oh one more favour to ask happy.gif

Could you make it so the php page sets the last-modified time in it's headers? to save unnessery downloading, or alternativly it writes the xml to another file which we can then just use hte HEAD command on it to get that information smile.gif

It would save kjcgames bandwidth somewhat.