Re: Displaying a pdf inline

From: Date: Wed, 15 Sep 2004 03:37:51 +0000
Subject: Re: Displaying a pdf inline
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196683@lists.php.net to get a copy of this message
* Thus wrote Todd Cary: > After reading the online documentation, it appears that I should be > using the following code, however it does not appear to work. Are there > some obvious errors? >... > header("Content-Type: application/pdf"); > header("Content-Disposition: inline; filename=image.pdf"); > //header("Content-Disposition: attachment; filename=image.pdf"); > header("Content-Length: $download_size"); > header("Connection: close"); > The problem comes down to how the client is configured to display a pdf file. IIRC, inline doesn't force the browser to display it within the browser, it all depends on the content-type, and if a plugin is suppose to load within the browser at that point. If you search the archives, your answer may be revealed :) Curt -- The above comments may offend you. flame at will.

« previous php.general (#196683) next »