Re: Convert HTML Table to Tab Delimited .TXT file

From: Date: Mon, 24 May 2004 18:15:50 +0000
Subject: Re: Convert HTML Table to Tab Delimited .TXT file
Groups: php.db 
Request: Send a blank email to php-db+get-34548@lists.php.net to get a copy of this message
Wow, thanks. I'm gonna give this a try right now. dave Mark Weinstock at mark_weinstock@yahoo.com recently wrote... > Maybe I'm missing something (quite possible), but you can make the > work happen autogically by using http headers. > header("Content-type: application/octet-stream"); > header("Content-Disposition: attachment; filename=excelfile.xls"); > Replace excelfile.xls with whatever you want the filename to be > Then write out your table as you would normally. the result should be > an excel file either downloaded or opened in the browser, depending > on the browser settings.

« previous php.db (#34548) next »