Hello
I am using:
*************** *************** *************** *************** *************
header("Content-Type:applicatio n/force-download",false );
header("Content-Disposition: attachment; filename= "
..basename($fil e));
@readfile($file );
*************** *************** *************** *************** *************
to let user get popup window with options to download file on his
local machine.
But particuler this line:
*************** *************** *************** *************** *************
header("Content-Disposition: attachment; filename= "
..basename($fil e));
*************** *************** *************** *************** *************
is creating problem in code. Download file functionality is working
fine, no problems in that. But it starts creating javascript errors on
page.Javascript Error: Unspecified error.
If I am using
*************** *************** *************** *************** *************
header("Content-Type:applicatio n/force-download",false );
@readfile($file );
*************** *************** *************** *************** *************
Code is working fine without any javascript error but save file in
comma seperated text format which is not required format. I need file
to be in .csv format.
Please guide me thru.....
Inpreet Singh
I am using:
*************** *************** *************** *************** *************
header("Content-Type:applicatio n/force-download",false );
header("Content-Disposition: attachment; filename= "
..basename($fil e));
@readfile($file );
*************** *************** *************** *************** *************
to let user get popup window with options to download file on his
local machine.
But particuler this line:
*************** *************** *************** *************** *************
header("Content-Disposition: attachment; filename= "
..basename($fil e));
*************** *************** *************** *************** *************
is creating problem in code. Download file functionality is working
fine, no problems in that. But it starts creating javascript errors on
page.Javascript Error: Unspecified error.
If I am using
*************** *************** *************** *************** *************
header("Content-Type:applicatio n/force-download",false );
@readfile($file );
*************** *************** *************** *************** *************
Code is working fine without any javascript error but save file in
comma seperated text format which is not required format. I need file
to be in .csv format.
Please guide me thru.....
Inpreet Singh
Comment