I use Zlib to build a zip file on th fly then downlaod it.my program name is ziptest.php. I give the download name "test.zip" with header function.but the saved file name is ziptest.php when I run the code.Please help me fix the header function problem.
the header code is here:
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=test.zip")
Please help me assign the download file name with header.
Thanks a lot.