problem with content-disposition:inline
Posted: Mon Feb 16, 2004 4:17 am
Hi,
I'm having a problem generating an excel-file to the client-browser.
I've made a nice report with mysql and php, along with company-logo etc...
now I want to use it with:
On my developer-pc, this works fine, I get the excel-file perfectly in my browser, but when I want to do this from a remote pc, I get an excel-error and no output or just the php-code in the excel-file.
Than I've tried it with:
this works, but my logo and other images are not in the excel-file.
What am I doing wrong? I guess this is a security-issue, but how do I make this work???
please please help me...
I'm having a problem generating an excel-file to the client-browser.
I've made a nice report with mysql and php, along with company-logo etc...
now I want to use it with:
Code: Select all
header("Content-Type: application/vnd.ms-excel");
header ("Content-Disposition:inline; filename=test.xls");Than I've tried it with:
Code: Select all
header("Content-Type: application/vnd.ms-excel");
header ("Content-Disposition:attachment; filename=test.xls");What am I doing wrong? I guess this is a security-issue, but how do I make this work???
please please help me...