php - Page not redirect to any other page during download -


i have web page in there option download file. download fine during downloading, page not redirecting till download completed.

the code used download file below:

header("content-type: application/force-download"); header("content-type: application/octet-stream"); header("content-disposition: inline; filename=nri legal services_".$row['document_path']); header("expires: ".gmdate("d, d m y h:i:s", mktime(date("h")+2, date("i"), date("s"), date("m"), date("d"), date("y")))." gmt"); header("last-modified: ".gmdate("d, d m y h:i:s")." gmt"); header("cache-control: no-cache, must-revalidate"); header("pragma: no-cache"); header('content-transfer-encoding: binary'); header('connection: keep-alive'); header('expires: 0'); header('cache-control: must-revalidate, post-check=0, pre-check=0'); header('pragma: public');  header('content-length: ' . filesize($file));  readfile($file); 

please sort out. in advance.

maybe need make wrapper page, 01net, has link download link (in case php file above), redirects thank page using javascript. can't way trying do.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -