|
Posted by Erwin Moller on 09/18/07 16:00
The Natural Philosopher wrote:
> The Natural Philosopher wrote:
>> Captain Paralytic wrote:
>>> On 14 Sep, 15:00, The Natural Philosopher <a...@b.c> wrote:
>>>> Michael Fesser wrote:
>>>>> .oO(The Natural Philosopher)
>>>>>> How does the browser know if its a jpeg or a gif? Mime type I guess?
>>>>> Correct. For example
>>>>> header('Content-Type: image/jpeg');
>>>>> Micha
>>>> Ok. Thats all coded in now anyway. I'll test later. Many thanks all.
>>>
>>> BTW, I used this as a resource to save writing it all from scratch:
>>>
>>> http://www.onlamp.com/pub/a/onlamp/2002/05/09/webdb2.html
>>>
>> Well I've done it all, but it still doesn't work.
>>
>> On safari a direct call to the program nets me a question mark
>> graphic, in Firefox it just echoes the browser URL..
>>
>> Inside teh actual display I just get a fractured graphic symbol..
>>
>>
> Oh..it works inside the program now, but not as a standalone. Hmm.
>
> I had an SQL permissions problem..
Hi,
A little tip that saved me some time during the type of work you do now:
If you think your script is screwing up somewhere, and you want to see
the errors, simply change the header for mimetype into text/plain, and
call the image directly from the browser.
You won't see the image, but you will see notices and such.
(Of course you can also look into the errorlog, but that is such a hassle)
Once you receive a bunch a data that doesn't make sense, you propably
have the image delivered, and it is time to put the old header back. ;-)
Regards,
Erwin Moller
[Back to original message]
|