Page 1 of 1

open a Excel file by PHP query

Posted: Fri Aug 04, 2006 6:40 am
by sujithfem
Hi
I have one link for open a excel file, the file is open by perfectly. my issue is i need to open that excel file without prompting window like open or save the file. it has to open directly after clicking the link as like pdf file. i used the following header file but no use.

<?php

header('Content-Type: application/msexcel');
header('Content-Disposition: inline; filename=docfmc2006.xls');
header("Content-Transfer-Encoding: binary");

?>

any idea for this issue? please let me know .

Thank you

Regards,
Sujith

Posted: Fri Aug 04, 2006 6:56 am
by volka
sujithfem wrote:y issue is i need to open that excel file without prompting window like open or save the file. it has to open directly after clicking the link as like pdf file.
This behaviour depends on the configuration of the (clientside) browser.

Posted: Fri Aug 04, 2006 7:17 am
by sujithfem
Thank you very much for your comments