Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4382
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
| Newsgroups | comp.lang.php |
| Subject | Re: this is my code i am not getting images throuh php script |
| Date | Mon, 09 Jan 2012 23:08:14 +0100 |
| Lines | 58 |
| Message-ID | <9n16qfFifnU1@mid.uni-berlin.de> (permalink) |
| 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> <jef8gs$or9$1@news.albasani.net> <9n0r3hFi0lU1@mid.uni-berlin.de> <jeffe7$9ur$2@news.albasani.net> <9n10hbFvhhU1@mid.uni-berlin.de> <jefj90$jcg$2@news.albasani.net> <9n12f4FgppU1@mid.uni-berlin.de> <er4st8-4o7.ln1@luuk.invalid.lan> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de wy63SymgKjFYFFSu0/Uufg9xrfx3Dy1Coh1DE3kWyUDjpJx5Y= |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.24) Gecko/20111101 SUSE/3.1.16 Lightning/1.0b2 Thunderbird/3.1.16 |
| In-Reply-To | <er4st8-4o7.ln1@luuk.invalid.lan> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:4382 |
Show key headers only | View raw
Am 09.01.2012 23:04, schrieb Luuk:
> On 09-01-2012 21:53, M. Strobel wrote:
>> Am 09.01.2012 21:38, schrieb The Natural Philosopher:
>>> 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.
>>
>> Just re-checked it, it is official, leave it off. It caused me
>> headaches in one project I took over, there were tons of files
>> included, and I always had unwanted newlines in file output.
>>
>> Just omit the closing tag in php-only files, it's easier than the
>> ob_ functions.
>>
>> /Str.
>
> If you re-checked, could you also provide us with a link to where you
> found that info?
>
>
search string was php closing tag
http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
/Str.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
this is my code i am not getting images throuh php script srikanth <sritullimilli@gmail.com> - 2012-01-09 07:23 -0800
Re: this is my code i am not getting images throuh php script Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-09 07:37 -0800
Re: this is my code i am not getting images throuh php script Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-01-09 17:25 +0100
Re: this is my code i am not getting images throuh php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-09 17:35 +0000
Re: this is my code i am not getting images throuh php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-09 19:48 +0100
Re: this is my code i am not getting images throuh php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-09 19:33 +0000
Re: this is my code i am not getting images throuh php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-09 21:20 +0100
Re: this is my code i am not getting images throuh php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-09 20:38 +0000
Re: this is my code i am not getting images throuh php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-09 21:53 +0100
Re: this is my code i am not getting images throuh php script Luuk <Luuk@invalid.lan> - 2012-01-09 23:04 +0100
Re: this is my code i am not getting images throuh php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-09 23:08 +0100
ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Luuk <Luuk@invalid.lan> - 2012-01-10 11:58 +0100
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-10 03:15 -0800
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] The Natural Philosopher <tnp@invalid.invalid> - 2012-01-10 12:34 +0000
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-10 05:24 -0800
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] The Natural Philosopher <tnp@invalid.invalid> - 2012-01-10 12:33 +0000
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-10 07:54 -0500
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-10 17:16 +0100
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-10 14:56 -0500
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-10 22:08 +0100
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] The Natural Philosopher <tnp@invalid.invalid> - 2012-01-10 21:11 +0000
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Richard <rgrdev_@gmail.com> - 2012-01-10 22:23 +0100
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] The Natural Philosopher <tnp@invalid.invalid> - 2012-01-10 21:31 +0000
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-10 22:45 +0100
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] Luuk <Luuk@invalid.lan> - 2012-01-10 23:02 +0100
Re: ommiting closeing tag in PHP Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-16 01:30 +0100
Re: this is my code i am not getting images throuh php script Arno Welzel <usenet@arnowelzel.de> - 2012-01-11 15:51 +0100
csiph-web