Re: this is my code i am not getting images throuh php script [message #176616 is a reply to message #176570] |
Wed, 11 January 2012 14:51 |
Arno Welzel
Messages: 317 Registered: October 2011
Karma:
|
Senior Member |
|
|
The Natural Philosopher, 2012-01-09 20:33:
> 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?
Yes.
> If so it would make life simpler
That's the reason, why this is often recommended.
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
|
|
|