open a Excel file by PHP query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sujithfem
Forum Newbie
Posts: 23
Joined: Tue May 23, 2006 10:56 pm
Location: India
Contact:

open a Excel file by PHP query

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
sujithfem
Forum Newbie
Posts: 23
Joined: Tue May 23, 2006 10:56 pm
Location: India
Contact:

Post by sujithfem »

Thank you very much for your comments
Post Reply