Hello,
Monday, August 11, 2003, 10:42:58 PM, you wrote:
CS> --- Uros Gruber <[EMAIL PROTECTED]> wrote:
>> I made some php script to get Header from http request. When I
>> request some image header looks like:
>> Content-Type: text/html
CS> Your instincts serve you well. You want the Content-Type header to be correct,
CS> as you are currently telling the Web client that you are sending HTML, and then
CS> (I assume) dumping a bunch of binary data.
>> Image showed correctly
CS> On what browser? IE has earned a poor reputation for its disregard for content
CS> type, so IE's bug may be conveniently counteracting your own by coincidence.
On both mozzila and IE.
>> here is code I have in img.php
>>
>> $size = getimagesize ($file);
>> header("Content-type: {$size['mime']}");
CS> OK, I see that the documentation is somewhat confusing here (I may try to fix
CS> this). The key phrase in the manual preceding this example is:
CS> "Beginning with PHP 4.3, getimagesize() also returns an additional parameter,
CS> mime, that corresponds with the MIME type of the image."
CS> So, before we continue, can you tell us what version of PHP you are using? You
CS> might want to just do this:
Server: Apache/1.3.27 (Unix) PHP/4.3.1
I check that i get correct MIME, so header is OK. Also if i manualy
set to jpeg, nothing helps.
CS> header('Content-Type: image/jpeg');
I think I'm stuck here.
best regards
Uros
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php