+ Reply to Thread
Results 1 to 5 of 5

Thread: PHP Geeks

  1. #1
    Nate_Benton's Avatar
    Nate_Benton is offline x10 Lieutenant Nate_Benton is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Plainwell, Michigan, USA.
    Posts
    285

    PHP Geeks

    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?

  2. #2
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: PHP Geeks

    i've never worked with xml files but you could probably use this

    <?php
    include(_____.xml)
    ?>
    someone please correct me if i'm wrong..
    -Chris Z
    Retired Account Manager


  3. #3
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Geeks

    What do you mean by export? CURL can post xml to a script.

  4. #4
    lfnet is offline x10Hosting Member lfnet is an unknown quantity at this point
    Join Date
    Jul 2006
    Posts
    6

    Re: PHP Geeks

    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

  5. #5
    dharmil's Avatar
    dharmil is offline x10 Elder dharmil is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Avenel New Jersey
    Posts
    828

    Re: PHP Geeks

    um like this
    http://dharmil.info/shoutbox/shout.php

    thats a xml file its retreves stuff from db open it its xml

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  4. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM
  5. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers