Doing some force downloading with PHP headers. I have the SAME code on http://www.mywebsite.com
I do the following:
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Description: File Transfer');
header('Content-Length: ' . filesize($file));
header('Content-Disposition: attachment; filename=' . basename($filename));
..... CODE to update database .....
When I am on the non secure site, i get the box to download the file, as well as my sql statements execute properly. When I am over SSL, I get the box to download the file, however the database does NOT issue the queries and updates. The interesting thing is that if I remove the header and readfile statements, over ssl, the database queries execute correctly. Thus I believe the problem is over SSL with readfile ??
Anyone have any thoughts or ideas?
Thanks a bunch!