Hello,
I am downloading a excel file from the survey, I tried all combinations of paths, but thats not working, on my system, only http://localhost/twofolder/survey.xls is working. what should i do here? The sever is running IIS.
$path="http://localhost/onefolder/twofolder/survey.xls";
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
header ("Content-type: application/x-msexcel");
header ('Content-Length: ' . filesize($path));
header ("Content-Disposition: attachment; filename=survey.xls" );
header ("Content-Description: PHP/INTERBASE Generated Data" );