Thread: Help with FTP

    #1
  1. No Profile Picture
    Viper_SB
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi, I currently have a script that will put a file on to a ftp server it works and all but I have a couple questions:

    1. If I'm transfering a zip file (so far have only tried .zip and .txt) it will transfer but when I download or view it with some other FTP program it gives an error that there is 1 extra byte so can't open any files in it.

    2. There seams likes there is a file size limt that will be transferd. Is this true? I've not been able to transfer files over 600k or so.

    ------------------
    Viper_SB
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    London/UK
    Posts
    91
    Rep Power
    15
    You're doing a binary trf for the zip, right?

    Also, I've used the php ftp stuff to move files > 1MB, sure it's not a connectivity prob?

    regs

    bealers

    ------------------
    http://back-end.org
  4. #3
  5. No Profile Picture
    Viper_SB
    Guest
    Devshed Newbie (0 - 499 posts)
    This is the code I'm useing:

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    $ftp = ftp_connect($ftpserver, 21);
    if ($ftp) {
    if (ftp_login($ftp, $ftpuser, $ftppass)) {
    $ftpfile = @ftp_put($ftp, $remotefile, $localfile, FTP_BINARY);
    }
    }
    ftp_quit($ftp);
    [/code]

    I have a ADSL line and am on a local network. A coworker told me that hes been told by ppl who hes e-mailed files to (.zip and .pdf) that they couldn't open them when they got the e-mail. Don't know if that is the connection or something.

    Thanks for your responds.

    ------------------
    Viper_SB

Similar Threads

  1. ftp problem
    By lieber1 in forum FTP Help
    Replies: 0
    Last Post: November 18th, 2003, 05:08 AM
  2. FTP server problems
    By lnong in forum FTP Help
    Replies: 2
    Last Post: October 27th, 2003, 11:30 AM
  3. FTP Isolation (not using Active Directory)
    By cltatum1 in forum FTP Help
    Replies: 2
    Last Post: October 1st, 2003, 08:22 PM
  4. anonFTP hack?
    By (jp) in forum FTP Help
    Replies: 3
    Last Post: March 10th, 2003, 02:58 PM
  5. Replies: 2
    Last Post: August 12th, 2002, 09:25 AM

IMN logo majestic logo threadwatch logo seochat tools logo