Menu
Hi everyone,
This code is works good on my test server, but when I moved it to my production server it doesn’t like how I placed the PHP var within the filename.. If I take out the var and just have filename.xls it works fine..
Any ideas?
[code=php]$strDate = $_REQUEST[“date”];
header(“Content-Type: application/vnd.ms-excel”);
header(“Expires: 0”);
header(“Cache-Control: must-revalidate, post-check=0, pre-check=0”);
header(“content-disposition: attachment;filename=filename_$strDate.xls”);
Thanks