Server change affecting ability to send downloaded files???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);
readfile('../../store/files/'.$file_row['filename']);

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux