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 #176564 is a reply to message #176561] Mon, 09 January 2012 16:25 Go to previous messageGo to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma:
Senior Member
On 1/9/2012 4:37 PM, Captain Paralytic wrote:
> On Jan 9, 3:23 pm, srikanth<sritullimi...@gmail.com> wrote:
>> <?php
>> header("Content-type:image/jpeg");
>> $fp=fopen("F:/Mydocuments/Certificates/Passport/Passport.jpg","r");
>> echo fread($fp,filesize("F:/Mydocuments/Certificates/Passport/Passport.jpg");
>> ?>
>
> Not surprising really since you have a syntax error (missing ")").

Yes.
srikanth, to debug such pieces of code you can simply change the header to:
header("Content-type:text/html");

and see what it says.
(Or check the rrorlog if you have one up-and-running).

Regards,
Erwin Moller


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
[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:09:25 GMT 2024

Total time taken to generate the page: 0.04032 seconds