Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: this is my code i am not getting images throuh php script Date: Wed, 11 Jan 2012 15:51:08 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: <4F0DA1DC.9060004@arnowelzel.de> References: <31838234.1649.1326122630052.JavaMail.geo-discussion-forums@prak33> <877e0961-7321-44dc-813c-920c855c08c1@j9g2000vby.googlegroups.com> <4f0b14ef$0$6940$e4fe514c@news2.news.xs4all.nl> <9n0r3hFi0lU1@mid.uni-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="dd4uQGf4fHOQcq7/hg1u1Q"; logging-data="28721"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rqhWvKjMPZgIyAZGukQ4mr3RU2yjYz3c=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:HlB5kmGP88EGZd4NrVSK3dUfIGQ= Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4424 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 >>> ----------------- >>> >> 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