Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    October 2nd, 2006
    Posts
    1
    ftp download problems
    Hi,

    I have a VERY simple ftp script which works in many other sites, but won't work with linkshare. Hopefully someone can help...here it is:

    <?php
    function download($host, $user, $password, $sourcefilepath, $localfilepath)
    {
    $conn = ftp_connect($host);
    $result = ftp_login($conn, $user, $password);
    $result = ftp_get($conn, $localfilepath, $sourcefilepath, FTP_BINARY);
    ftp_quit($conn);

    }

    // setup the parameters, and invoke the download function.
    //----------------------------------------------------------

    $host = "aftp.linksynergy.com";
    $user = "user";
    $password = "password";
    $sourcefilepath = "1234_xxxxxxx_mp.xml.gz";
    $localfilepath = "1234_xxxxxxx_mp.xml.gz";

    download($host, $user, $password, $sourcefilepath, $localfilepath)

    ?>

    Straightforward, but the ftp_get fails with a false result. Any one have any suggestions?

  2. #2
    Full Member kea12345678's Avatar
    Join Date
    May 10th, 2005
    Posts
    203
    Just checking the obvious, is it possible that you are using a different ip then the static ip that LS has approved for getting the datafeed?

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: FTP problems 4/5/2014
    By Bob Lawrence in forum Commission Junction - CJ
    Replies: 26
    Last Post: April 10th, 2014, 07:47 AM
  2. Re FTP access problems
    By neelloc21 in forum ShareASale - SAS
    Replies: 3
    Last Post: March 22nd, 2011, 06:36 PM
  3. FTP problems?
    By zimmy in forum ShareASale - SAS
    Replies: 0
    Last Post: June 27th, 2006, 02:26 PM
  4. FTP / Feed Download / AutoSite Update Question
    By bokesch in forum WebMerge (Fourthworld.com)
    Replies: 0
    Last Post: March 25th, 2006, 04:57 PM
  5. FTP Access problems
    By happypoon in forum ShareASale - SAS
    Replies: 2
    Last Post: December 10th, 2004, 02:18 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
  •