problem with header()

From: Date: Wed, 27 Jun 2001 13:16:43 +0000
Subject: problem with header()
Groups: php.general 
Request: Send a blank email to php-general+get-55380@lists.php.net to get a copy of this message
Hello: Thank God. The mailing list is back and many thanks to the PHP Owners. I am having a problem using the header() function. I am using this function in a script that is used to download files. When used, I am getting a blank page with some junk characters and some html code, that I haven't created. And in the location its showing the correct url. Details: Function used in the script: header("Location: http://www.test.com/pdf/test.pdf"); The page I got after executing the script is a blank page with the following source code (junk characters in their respective html code). ### &yuml;p <html><body><embed width=100% height = 100% fullscreen = yes src = http://www.test.com/pdf/download.php3></body></html> ### The embed src is the name of the script file. But in the location field its showing the pdf url. This happened in IE browser. Please help me to solve this issue. Many Thanks Sheni R Meledath sheni@cyber-gear.com

« previous php.general (#55380) next »