Hey all --

A couple of weeks ago my online stores, on a machine I host at Rackspace, stopped delivering files that people purchase. I've used this for years, and it's always worked perfectly with all filetypes:

header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'. $file_row["filename"].'"');
$size = filesize('../../store/files/'.$file_row['filename']);
header('Content-Length: '.$size);

But then, all of a sudden, it only works with ZIP files. There were no changes to the code or to the files, just one day all of a sudden any time someone purchases a DMG, EXE, PDF, etc. they get zero bytes. I've asked Rackspace if they upgraded something that might produce this change but they say "check your code". The code had not been touched in years (literally). I've tried a zillion combos of different headers but I'm having no luck.

Has anyone ever heard of something (besides my code and my files) that could cause this behavior? You'll be my best friend if you can help. Thanks.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to