A
Anonymous
Guest
HI,
I'm using a class to write from a db an excel file to download.
I' ve this problem: I cannot open directly the file from explorer if I start the session in my php file.(the 'save' mode is ok.)
If I start the session 'session_start();' when i try to download the file from explorer
it displays more or less this message : cannot find 'filePath'. Check file name and position.
firefox downloads the file correctly instead.
without starting the session evrerythings works fine.
this is the header
header ( "Expires: Mon, 1 Apr 1974 05:00:00 GMT");
header ( "Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT" );
header ( "Pragma: no-cache" );
header ( "Content-type: application/vnd.ms-excel; name=".$name.".xls" );
header ( "Content-Disposition: attachment; filename=".$name.".xls");
// CONTENT
thanks. sorry for my poor english.
I'm using a class to write from a db an excel file to download.
I' ve this problem: I cannot open directly the file from explorer if I start the session in my php file.(the 'save' mode is ok.)
If I start the session 'session_start();' when i try to download the file from explorer
it displays more or less this message : cannot find 'filePath'. Check file name and position.
firefox downloads the file correctly instead.
without starting the session evrerythings works fine.
this is the header
header ( "Expires: Mon, 1 Apr 1974 05:00:00 GMT");
header ( "Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT" );
header ( "Pragma: no-cache" );
header ( "Content-type: application/vnd.ms-excel; name=".$name.".xls" );
header ( "Content-Disposition: attachment; filename=".$name.".xls");
// CONTENT
thanks. sorry for my poor english.