PHP Geeks

Nate_Benton

New Member
Messages
570
Reaction score
0
Points
0
Hey, I'm looking for some help.
How would I export an xml datafeed to php?
Returning something like "Person has been in chat for 1 week, 4 days, 7 hours, 32 minutes and 45 seconds".
Is this possible?
 

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
i've never worked with xml files but you could probably use this

<?php
include(_____.xml)
?>

someone please correct me if i'm wrong..
 

lfnet

New Member
Messages
12
Reaction score
0
Points
0
Umm... don't you mean import xml?

first you'd have to give me an example of this xml data, so I know how to help you.

PHP scripts need to expect a specific format.

(by the way, what version of php are you using--that is what version is x10 using?)
if its php5, you can use built-in xml functions.
see here: http://www.php.net/xml and scroll down to "Example 1. Show XML Element Structure"

to see some code
 
Top