Closed Thread
Results 1 to 2 of 2

Thread: File getting corrupted when ftping it to website

  1. #1
    pballz is offline x10Hosting Member pballz is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    24

    File getting corrupted when ftping it to website

    I have a game script that has a db and I upload that every so often for a php page to display stats. But I just checked it today and the page has php errors all over and I traced the problem to the file being corrupt.

    Using filezilla to upload the db file manually works fine, but using the windows ftp.exe which I run via a script to upload the file automatically doesn't work. Did anything change with the server? Nothing should of changed on my end and it's weird that the windows ftp program suddenly starts failing to upload the file correctly.

    edit:
    I did the obvious thing and got another command line ftp program which works but my question still stands.
    Last edited by pballz; 07-23-2011 at 11:02 PM.

  2. #2
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: File getting corrupted when ftping it to website

    The only reason I can think of is that ftp.exe was using the wrong mode, files can be uploaded in ASCII or binary mode. ASCII is generally the choice for text based files (.php, .txt, .css etc) while binary is the choice for images and such things.

    If windows ftp.exe uses the wrong mode, that can corrupt files. Normally this would be automatically detected, but if you at some point manually it could stick to that and not automatically chose the best option next time you upload something.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

Closed Thread

Similar Threads

  1. Replies: 1
    Last Post: 10-25-2010, 07:04 AM
  2. Intermittent problems ftping
    By webgow79 in forum Free Hosting
    Replies: 0
    Last Post: 10-22-2010, 07:32 AM
  3. website - corrupted
    By ekaterinavelkova28 in forum Free Hosting
    Replies: 0
    Last Post: 09-23-2010, 08:22 AM
  4. ftping problem
    By delon in forum Free Hosting
    Replies: 1
    Last Post: 07-13-2008, 08:04 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
x10hosting free hosting for the masses
dedicated servers