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.
FileZilla upload
Moderator: General Moderators
Re: FileZilla upload
I forgot to add that I am running the FileZIlla client on Ubuntu (linux) and WinSCP on Windows (obviously)
Re: FileZilla upload
Maybe an encoding issue?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: FileZilla upload
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);
}