At 3:32 PM +0100 8/19/08, Ashley Sheridan wrote:
That bug report makes sense now, in light of your problem. It wasn't
something I'd ever seen happen before, as most of my work is done on
Linux, and the bug seems to be specific to the way Windows uses the
BOM for UTF-8 PHP files.
Ash:
A probl
That bug report makes sense now, in light of your problem. It wasn't
something I'd ever seen happen before, as most of my work is done on
Linux, and the bug seems to be specific to the way Windows uses the BOM
for UTF-8 PHP files.
Ash
www.ashleysheridan.co.uk
--- Begin Message ---
I just add this
I just add this comment for reference.
I found this bug report on the PHP Web site:
http://bugs.php.net/bug.php?id=22108
That bug explains everything :)
Stefano
Stefano Noffke wrote:
Thanks for the reply.
I think I found the problem here: The php file was saved with UTF-8
encoding, and for
ysheridan.co.uk
----
Subject:
Re: [PHP] File download problem
From:
Stefano Noffke <[EMAIL PROTECTED]>
Date:
Tue, 19 Aug 2008 15:17:25 +0200
To:
php-general@lists.php.net
To:
php-general@lists.php.net
I checked the files with an HEX editor, and I found that each downloaded
file starts with "EFBB
I had a similar problem with a script I was using to stream video clips
to a user from a directory that was not accessible through the web.
Turned out I had already sent some HTML content down to the browser
without realising it. I'll go out on a limb here and guess that those
three bytes you're se
I checked the files with an HEX editor, and I found that each downloaded
file starts with "EFBBBF", and after those three bytes follows the
regular file.
If I delete those three bytes, I can open the files just fine.
Now the question is: Why do I get those three extra bytes at the
beginning o
Hi,
Thank you for your reply. I tried your code, but the problem remains. I
still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG are
still corrupted.
I wonder why it works with some files and not with others...
Stefano
Ashley Sheridan ha scritto:
Hi Stefano,
You can use th
Hi Stefano,
You can use this code instead to read in the file and output it to the
browser, as it is binary safe. I've used it for the same reason you
require, and it works fine with video clips.
$fp = fopen($path, "rb");
while(!feof($fp))
{
print(fread($fp, 1024));
flush($fp);
}
fc
8 matches
Mail list logo