[H-GEN] Pdf-php puzzle - solution

Byron Ellacott bje at apnic.net
Mon Sep 27 18:26:11 EDT 2004


Paul Clarke wrote:
> The application/.pdf was not the cause of any problems, I was also
> trying to code the creation of that line based on the file extension but
> I think I will need to address an array of known types.
> http://lists.humbug.org.au/cgi-bin/mailman/listinfo/general

Such as /etc/mime.types? :)

(IE and Safari have the exceptionally bad practice of guessing 
content-type based on the data they receive.  This works out well for 
those times servers send the wrong Content-Type, but falls down horribly 
when the browser guesses the wrong Content-Type, because there's nothing 
the author can do to correct the guess.)

-- 
bje




More information about the General mailing list