note 25167 added to function.header

From: Date: Thu, 12 Sep 2002 21:47:31 +0000
Subject: note 25167 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-36604@lists.php.net to get a copy of this message
One nice way of generating a report and/or allowing your users to export the contents of a table, is to return HTML table tags as content-type Excel. This assumes the user has Excel 97 or later. <?php header('Content-type: application/vnd.ms-excel'); echo "<table><tr><td>hello</td><td>world</td></tr></table>"; ?> -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+25167 http://master.php.net/manage/user-notes.php?action=delete+25167 http://master.php.net/manage/user-notes.php?action=reject+25167

« previous php.notes (#36604) next »