I am a novice programmer at PHP. I want to redirect my webpage to another webpage. The problem is that First I want to output a file as an attachment and then redirect the web page
I have used this code to output the attachment file
Code: Select all
header("Content-Disposition: attachment; filename=$filename");
echo $out;
Now Since I have used echo here I cant use
Code: Select all
header("location:");