Re: this is my code i am not getting images throuh php script [message #176572 is a reply to message #176571] |
Mon, 09 January 2012 20:38 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
M. Strobel wrote:
> Am 09.01.2012 20:33, schrieb The Natural Philosopher:
>> M. Strobel wrote:
>>> Am 09.01.2012 18:35, schrieb The Natural Philosopher:
>>>> The minimal code is something like
>>>>
>>>> send_passport.php
>>>> -----------------
>>>> <?php
>>>> header("Content-Type: image/jpeg");
>>>> readfile("F:/Mydocuments/Certificates/Passport/Passport.jpg");
>>>> ?>
>>>> <<<...and no whitespace here!!!
>>>>
>>>> I mistrust using things that are designed for text strings for
>>>> binary files.
>>> Why not leave off the ?> tag?
>>>
>> Is that php legal?
>>
>> If so it would make life simpler
>>
>>
>>> /Str.
>
> I read somewhere Zend leaves it off in its code.
>
> Works like a charm.
Not too old to learn something, then.
I'll use that next time one of my 'code only' scripts blows up..
>
> /Str.
|
|
|