I am newbie with PHP and backend
below codes send a file to client
$size = strlen($data);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$name}");
header("Content-Length: $size");
if (isset($_SERVER['HTTPS'])) {
header('Pragma: ');
header('Cache-Control: ');
} else {
header("Pragma: private");
header("Cache-Control: private, must-revalidate");
}
here I want to reload page after download file
I've tried below code But it didn't work
header('Refresh: 0;');
so How can I reload/refresh page after download finished ?