Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4365 > unrolled thread
| Started by | srikanth <sritullimilli@gmail.com> |
|---|---|
| First post | 2012-01-09 07:23 -0800 |
| Last post | 2012-01-11 15:51 +0100 |
| Articles | 20 on this page of 27 — 10 participants |
Back to article view | Back to comp.lang.php
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
Page 1 of 2 [1] 2 Next page →
| From | srikanth <sritullimilli@gmail.com> |
|---|---|
| Date | 2012-01-09 07:23 -0800 |
| Subject | this is my code i am not getting images throuh php script |
| Message-ID | <31838234.1649.1326122630052.JavaMail.geo-discussion-forums@prak33> |
<?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");
?>
[toc] | [next] | [standalone]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2012-01-09 07:37 -0800 |
| Message-ID | <877e0961-7321-44dc-813c-920c855c08c1@j9g2000vby.googlegroups.com> |
| In reply to | #4365 |
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 ")").
[toc] | [prev] | [next] | [standalone]
| From | Erwin Moller <erwinmollerusenet@xs4all.nl> |
|---|---|
| Date | 2012-01-09 17:25 +0100 |
| Message-ID | <4f0b14ef$0$6940$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #4368 |
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
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-01-09 17:35 +0000 |
| Message-ID | <jef8gs$or9$1@news.albasani.net> |
| In reply to | #4371 |
Erwin Moller wrote:
> 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
>
>
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.
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-09 19:48 +0100 |
| Message-ID | <9n0r3hFi0lU1@mid.uni-berlin.de> |
| In reply to | #4375 |
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.
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-01-09 19:33 +0000 |
| Message-ID | <jeffe7$9ur$2@news.albasani.net> |
| In reply to | #4376 |
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.
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-09 21:20 +0100 |
| Message-ID | <9n10hbFvhhU1@mid.uni-berlin.de> |
| In reply to | #4377 |
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.
/Str.
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-01-09 20:38 +0000 |
| Message-ID | <jefj90$jcg$2@news.albasani.net> |
| In reply to | #4378 |
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.
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-09 21:53 +0100 |
| Message-ID | <9n12f4FgppU1@mid.uni-berlin.de> |
| In reply to | #4379 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Luuk <Luuk@invalid.lan> |
|---|---|
| Date | 2012-01-09 23:04 +0100 |
| Message-ID | <er4st8-4o7.ln1@luuk.invalid.lan> |
| In reply to | #4380 |
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?
--
Luuk
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-09 23:08 +0100 |
| Message-ID | <9n16qfFifnU1@mid.uni-berlin.de> |
| In reply to | #4381 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Luuk <Luuk@invalid.lan> |
|---|---|
| Date | 2012-01-10 11:58 +0100 |
| Subject | ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <v7itt8-sol.ln1@luuk.invalid.lan> |
| In reply to | #4382 |
On 09-01-2012 23:08, M. Strobel wrote: > Am 09.01.2012 23:04, schrieb Luuk: >> On 09-01-2012 21:53, M. Strobel wrote: >>> 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. damn, they actually documented this UGLY feature ;) -- Luuk
[toc] | [prev] | [next] | [standalone]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2012-01-10 03:15 -0800 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <490ecfcd-8fb4-46b4-98cb-f899e3b8652d@t30g2000vbx.googlegroups.com> |
| In reply to | #4392 |
On Jan 10, 10:58 am, Luuk <L...@invalid.lan> wrote: > > search string was php closing tag > > >http://www.php.net/manual/en/language.basic-syntax.instruction-separa... > > > /Str. > > damn, they actually documented this UGLY feature ;) Not only that, but they even recommend it "and in some cases omitting it is helpful".
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-01-10 12:34 +0000 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <jehb93$enl$2@news.albasani.net> |
| In reply to | #4393 |
Captain Paralytic wrote: > On Jan 10, 10:58 am, Luuk <L...@invalid.lan> wrote: >>> search string was php closing tag >>> http://www.php.net/manual/en/language.basic-syntax.instruction-separa... >>> /Str. >> damn, they actually documented this UGLY feature ;) > > Not only that, but they even recommend it "and in some cases omitting > it is helpful". Which it is in any case where whitespace is something the browser will *not* ignore..
[toc] | [prev] | [next] | [standalone]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2012-01-10 05:24 -0800 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <1ff0b75d-b663-45cc-a9ca-fdb7d86b3a61@cf6g2000vbb.googlegroups.com> |
| In reply to | #4396 |
On Jan 10, 12:34 pm, The Natural Philosopher <t...@invalid.invalid> wrote: > Captain Paralytic wrote: > > On Jan 10, 10:58 am, Luuk <L...@invalid.lan> wrote: > >>> search string was php closing tag > >>>http://www.php.net/manual/en/language.basic-syntax.instruction-separa... > >>> /Str. > >> damn, they actually documented this UGLY feature ;) > > > Not only that, but they even recommend it "and in some cases omitting > > it is helpful". > > Which it is in any case where whitespace is something the browser will > *not* ignore.. So it's not "case sensitive" :-)
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-01-10 12:33 +0000 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <jehb7c$enl$1@news.albasani.net> |
| In reply to | #4392 |
Luuk wrote: > On 09-01-2012 23:08, M. Strobel wrote: >> Am 09.01.2012 23:04, schrieb Luuk: >>> On 09-01-2012 21:53, M. Strobel wrote: >>>> 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. > > damn, they actually documented this UGLY feature ;) > Ugly, but damed usefull as my editor has a habit of adding an extra newline to the end of text files.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-01-10 07:54 -0500 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <jehcdc$rra$2@dont-email.me> |
| In reply to | #4395 |
On 1/10/2012 7:33 AM, The Natural Philosopher wrote: > Luuk wrote: >> On 09-01-2012 23:08, M. Strobel wrote: >>> Am 09.01.2012 23:04, schrieb Luuk: >>>> On 09-01-2012 21:53, M. Strobel wrote: >>>>> 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. >> >> damn, they actually documented this UGLY feature ;) >> > Ugly, but damed usefull as my editor has a habit of adding an extra > newline to the end of text files. > So get a good editor. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-10 17:16 +0100 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <9n36ioFs8vU1@mid.uni-berlin.de> |
| In reply to | #4398 |
Am 10.01.2012 13:54, schrieb Jerry Stuckle: > On 1/10/2012 7:33 AM, The Natural Philosopher wrote: >> Luuk wrote: >>> On 09-01-2012 23:08, M. Strobel wrote: >>>> Am 09.01.2012 23:04, schrieb Luuk: >>>>> On 09-01-2012 21:53, M. Strobel wrote: >>>>>> 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. >>> >>> damn, they actually documented this UGLY feature ;) >>> >> Ugly, but damed usefull as my editor has a habit of adding an >> extra >> newline to the end of text files. >> > > So get a good editor. > Now why should he "get a good editor" if he can omit the closing tag? /Str.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-01-10 14:56 -0500 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <jei54k$ifm$1@dont-email.me> |
| In reply to | #4400 |
On 1/10/2012 11:16 AM, M. Strobel wrote: > Am 10.01.2012 13:54, schrieb Jerry Stuckle: >> On 1/10/2012 7:33 AM, The Natural Philosopher wrote: >>> Luuk wrote: >>>> On 09-01-2012 23:08, M. Strobel wrote: >>>>> Am 09.01.2012 23:04, schrieb Luuk: >>>>>> On 09-01-2012 21:53, M. Strobel wrote: >>>>>>> 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. >>>> >>>> damn, they actually documented this UGLY feature ;) >>>> >>> Ugly, but damed usefull as my editor has a habit of adding an >>> extra >>> newline to the end of text files. >>> >> >> So get a good editor. >> > > Now why should he "get a good editor" if he can omit the closing tag? > > /Str. Because leaving off the close tag can cause problems later when someone else edits the site, assuming close tags are there. And leaving off a closing tag to get round an editor problem is just plain sloppy programming. But we already know certain people here don't care about that. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-10 22:08 +0100 |
| Subject | Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] |
| Message-ID | <9n3nmsF9a7U1@mid.uni-berlin.de> |
| In reply to | #4404 |
Am 10.01.2012 20:56, schrieb Jerry Stuckle: > On 1/10/2012 11:16 AM, M. Strobel wrote: >> Am 10.01.2012 13:54, schrieb Jerry Stuckle: >>> On 1/10/2012 7:33 AM, The Natural Philosopher wrote: >>>> Luuk wrote: >>>>> On 09-01-2012 23:08, M. Strobel wrote: >>>>>> Am 09.01.2012 23:04, schrieb Luuk: >>>>>>> On 09-01-2012 21:53, M. Strobel wrote: >>>>>>>> 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. >>>>> >>>>> damn, they actually documented this UGLY feature ;) >>>>> >>>> Ugly, but damed usefull as my editor has a habit of adding an >>>> extra >>>> newline to the end of text files. >>>> >>> >>> So get a good editor. >>> >> >> Now why should he "get a good editor" if he can omit the >> closing tag? >> >> /Str. > > Because leaving off the close tag can cause problems later when > someone else edits the site, assuming close tags are there. > > And leaving off a closing tag to get round an editor problem is > just plain sloppy programming. But we already know certain > people here don't care about that. > He has no editor problem, he can leave the closing tag off. Don't send him off in a goose chase. I knew who would not be comfortable with this easy solution. /Str.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.php
csiph-web