Page 1 of 1

FileZilla upload

Posted: Thu Jul 28, 2011 11:36 am
by icesolid
I am having the strangest problem.

I have uploaded files through FileZIlla forever, suddenly I noticed I was getting a session_start - headers already sent error on one my pages and couldn't figure out why it was happening. I tried uploading the same file through a different client (WinSCP) and the the error went away.

Any ideas what is going on? I like FileZilla much better than WinSCP.

Re: FileZilla upload

Posted: Thu Jul 28, 2011 2:14 pm
by icesolid
I forgot to add that I am running the FileZIlla client on Ubuntu (linux) and WinSCP on Windows (obviously)

Re: FileZilla upload

Posted: Wed Aug 03, 2011 4:43 pm
by pickle
Maybe an encoding issue?

Re: FileZilla upload

Posted: Wed Aug 03, 2011 9:42 pm
by McInfo
I'm curious whether this script reveals a difference between the two versions of the file.

Code: Select all

<?php
// Change this to the appropriate file name
$filename = './target';
printf("File-Size: %d bytes; ", filesize($filename));
if ($fh = fopen($filename, 'rb')) {
    if ($byte = fread($fh, 1)) {
        list(, $byte) = unpack('C', $byte);
        printf("First-Byte: 0x%02X; ", $byte);
    }
    if ($byte = fread($fh, 1)) {
        list(, $byte) = unpack('C', $byte);
        printf("Second-Byte: 0x%02X; ", $byte);
    }
    fclose($fh);
}