get an xml file

Discussion in 'PHP' started by protocol96, Aug 30, 2007.

  1. #1
    there's a url which is an xml file, now i have to get the file, i used get file contents but the file is 11mb and i need to parse it then. Any tips or links as to how should i go about it.
     
    protocol96, Aug 30, 2007 IP
  2. xemiterx

    xemiterx Peon

    Messages:
    62
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should google for a SimpleXML tutorial (php5 required). It works great.
     
    xemiterx, Aug 30, 2007 IP
  3. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    naa thats not what im looking for,
    suppose url-->abc.com which wen you paster in ur browser opens up an xml
    $x=file_get_contents("abc.com"); echo $x;
    PHP:
    now the echo just doesnt happen, am i doing something wrong
     
    protocol96, Sep 2, 2007 IP
  4. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Do you get an error message when you try to echo the data ?

    Brew
     
    Brewster, Sep 2, 2007 IP
  5. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I m sorry for this, but some modules were missing, i dunno which ones but after installing all of them, it started work.
     
    protocol96, Sep 3, 2007 IP