|
Posted by Toby A Inkster on 07/24/07 16:08
andre rodier wrote:
> When I need to display the image, I use this code :
> header("Content-Length: $fileSize") ;
> header("Content-Type: $type") ;
> header("Content-disposition: inline") ;
> header("Location: $imageURL");
The "Location" HTTP header just does a redirect, so there's precious
little use in sending any of those other headers first as the web server
will fill them in automatically when the browser requests the target URL.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 33 days, 19:46.]
Parsing an HTML Table with PEAR's XML_HTTPSax3
http://tobyinkster.co.uk/blog/2007/07/20/html-table-parsing/
Navigation:
[Reply to this message]
|