Header Location pointing to a file

From: Date: Tue, 15 Feb 2005 15:56:05 +0000
Subject: Header Location pointing to a file
Groups: php.windows 
Request: Send a blank email to php-windows+get-25583@lists.php.net to get a copy of this message
I am writing a script that does a database check and then based on several conditions I need to give the user a PDF file to view in the browser. Normally I would use the header("Location: the_file.pdf") command but this doesn't work...most likely because it doesn't try to resolve the MIME type. Is there a way to load the PDF in the users browser? Thanks, Ron

« previous php.windows (#25583) next »