Header application/pdf

From: Date: Wed, 03 Jan 2001 19:51:44 +0000
Subject: Header application/pdf
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4772@lists.php.net to get a copy of this message
Hi, I build my application on win2000 and put it on a linux server. On my development pc I can open a window with a pdf file in it. On the linux server I get an error. For jpegs and gifs it works well on both platforms. For pdf it only works on win2000. Regards, Martin Verstegen 2FIT This is the code: ...... $type = mysql_result($result,0,"bintype"); $fp = fopen(strtolower("../images/$customercode/$imagecode"),"rb"); $data = fread($fp,filesize("../images/$customercode/$imagecode")); Header("Content-type: $type"); echo $data;

« previous php.windows (#4772) next »