hi,

im trying to set up a ftp connection from within a script. the problem is, when i call ftp_put(..) i get the following abstract message!

Warning: ftp_put: PORT command successful. in /../upload2.php on line 121

line 121 - is the ftp_put() command

the script connects the socket ok and logins in to the ftp server ok.. but then hits problems on the ftp_put command.

although the script displays the ftp_put error msg above, it still manages to transfers a file (with the correct name) of size 0 to the FTP directory.

any ideas?

thanks, CK

[ill post the code if u want]

    25 days later

    it seams to all work fine on my linux host.

    But on my own win2000 server i get probs.
    the command ftp_get(); times out all the time

    but my ftp server says that the file is downloaded and sometimes the file appears in the folder but sometimes it just stops at 30 secs.

    pretty fucked i tried to
    ftp_set_option ( $conn_id, FTP_TIMEOUT_SEC, 1); standerd = 90
    cause the ftp server said file is downloaded.
    now sometimes i get a file but mostly they are 0 bytes

    The prob is only on my win2000 server phpdev5 linux does it fine.
    Seams like the php scripts does not get the download complete message PLEASE help

      🙂

      my problem turned out to be that my hosting company hadn't installed the ftp_ module!!

      i ended up using a ftp java applet to provide the ftp functionality that i needed!!

      previous to that, i just 'bounced' the ftp functionality from another server.

      i got a free a/c at: www.nelie.org - and that worked fine.

      client->http->nelie->ftp->myServer , if u get my syntax?

      later.. ck

        i am running it on my own comp and ftp is turned on for sure.
        Just to darn buggy to get it going.

          i just thought of somthing.

          if i remember rightly theirs a 2mb upload limit on the ftp_put() functions, etc. dont know if ur prob's anything to do with that?

          can u check that the ftp_ module is installed? the problems do 'seem' similar..

          apart from that, i aint got a clue..
          sorry, im new to this php stuff - ask me one of c++ instead?

          later..
          ck

          p.s. if u get REALLY stuck, just use one of the methods i gave above..

          🙂

            thinking about it:

            "The prob is only on my win2000 server phpdev5 linux does it fine."

            i'd go on this route. you need to find out the diff between php on unix and on win. then u should b able 2 track the bug down.

            im running 2k server (active dir not used), how hard it is too set up apache/php/mySQL??

            dont 4get im not a nethead, strictly a win32 app developer..

            anyway - hope the posts help - i know the ones i recieved did!

            cr$

              ok it seams that when i set the timeout low i can see that the file is being transfered from ftp to php but i still get a warning bout "no message just says warning"
              2 this is wrong php seams not to got or respond to the 226 message meaning download completed.

              I reinstalled also couple of times now even wiht php as cgi

              Hope anyone can help me on this one.

                Write a Reply...