my code [ see below] download file it is working fine with http but not able to download the file when i seitch to https
mean if the filename is x.php then
http://mysite.com/x.php downloads ths file
https://mysite.com/x.php gives error
session_start();
$file_path="1.gif";
$file_name="my.gif";
header("Content-Disposition: attachment; filename=$file_name");
$fp = fopen("$file_path","rb");
fpassthru($fp);
please help