Re: downloading a file using headers

From: Date: Wed, 30 Jul 2003 19:57:20 +0000
Subject: Re: downloading a file using headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157589@lists.php.net to get a copy of this message
* Thus wrote Amanda McComb (amccomb@indiana.edu): > I have a page that queries the database then uses the data to build an > excel spreasheet. THat spreadsheet is downloaded according to info in the > headers. My manager wants to put the page inside of another HTML page to > make it prettier, but then it breaks because headers are already written > (it's included in the other HTML page). It works fine on it's own, but > he really wants it in that page. He wants to know if there is a > way to trick it into working. If I understand this corretly you want the page to be like: [html stuff] [excel spreadsheet] [html stuff] The only way to do this is using iframes or somthing similar to that. You dont have to touch your php script at all. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157589) next »