FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » this is my code i am not getting images throuh php script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: this is my code i am not getting images throuh php script [message #176569 is a reply to message #176568] Mon, 09 January 2012 18:48 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
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?

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: repair SUSE php5 -a
Next Topic: Learn Chinese (Mandarin) faster by using flashcards with pictures
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:11:16 GMT 2024

Total time taken to generate the page: 0.05473 seconds