PHP and Scriptlance Data feed

Discussion in 'PHP' started by liam1412, Aug 15, 2009.

  1. #1
    Hi

    I am trying to use the data feeds from these sites, both are identical for some reason

    Anyway the documents say that each field is seperated with a TAB. I am using the following code but all I get is the full line. Can anyone help.


     <?php
        $file = fopen("http://www.getafreelancer.com/affiliates/liam1412/all.txt","rt");
        
        while(!feof($file))
        {
        
          $line = fgets($file);
          $parts = explode('\t',$line);
          
          print $parts[0].'<br /><br />';
          
          
        }
        ?>
    PHP:
    Thanks
     
    liam1412, Aug 15, 2009 IP
  2. liam1412

    liam1412 Active Member

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Now sorted,

    Thanks
     
    liam1412, Aug 15, 2009 IP