Re: MySQL to Excel using PHP

From: Date: Wed, 01 May 2002 16:59:30 +0000
Subject: Re: MySQL to Excel using PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95537@lists.php.net to get a copy of this message
On Wed, 1 May 2002, Jay Blanchard wrote: > If I name the file with a .xls extension it displays the code in the > excel worksheet in the browser. If I name the file with the .php > extension it opens Excel seperately, gives me a file download option (I > click 'Open') and then asks me to tell it what created the file, so I > pick Excel. Then the data is displayed properly in the Excel worksheet, > outside of the browser. I want the file to open an Excel worksheet in > the browser (IE, on an Intranet). Is there something I am missing? Nope. IE is a little perverse about how it decides which viewer to use. So just give it a name ending with .xls, or tack on a /whatever.xls to the end of the link. miguel

« previous php.general (#95537) next »