Jump to content

Headers problem


koopi

Recommended Posts

Hi guys,

 

I need help with a script i'm trying to run.

 

I want to include few headers is the same script:

 

header ('Location:http://www.google.com'); 
header("Content-disposition:attachment; filename=file.txt");
header("Content-type:application/txt");
readfile("file.txt"); 

 

But if i run the scrpit it's only enters to google and ignore the other headers (that force download file.txt). I need that the user will access google and also will be prompted to download the file.txt in parallel.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.