ftp_put() can not upload file correctly on server. plz help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • subodhSamrat
    New Member
    • Mar 2010
    • 1

    ftp_put() can not upload file correctly on server. plz help

    Hi!.
    I used ftp_put( ftpstream , $remoteFile , $filePath , FTP_ASCII ) for first time. $remoteFile is the file name which I used to upload the file on server. $filePath is the path where is temporarily image is strored.
    When I use this function , it shows successful and I can see file uploaded on the server.
    But the uploaded image is not correctly uploaded on server and can not open.
    Please somebody help.
    Thanks
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    If it is an image, you should probably use FTP_BINARY as the fourth parameter.

    If that doesn't work, show us more of the code. It's hard to figure out what is happening based on one line.

    Comment

    Working...