Re: [PHP] Is echo tag reasonably portable?

2005-11-18 Thread Marcus Bointon
On 15 Nov 2005, at 19:53, Robin Vickery wrote: I doubt very much if they will be disabled. They are perfectly valid SGML processing instructions. Firstly, I didn't actually suggest they were disabled. I suggested that they should be off by default. Late to the party I know, but I think

Re: [PHP] Is echo tag reasonably portable?

2005-11-16 Thread Jochem Maas
Curt Zirzow wrote: On Tue, Nov 15, 2005 at 05:39:36PM +, Richard Davey wrote: Hi Jim, Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast

[PHP] Is echo tag reasonably portable?

2005-11-15 Thread Roman Ivanov
Can '?=' be used for templates, or is it a bad thing? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Roman Ivanov
Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant for

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jochem Maas
Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant for

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread John Nichel
Roman Ivanov wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread lonewolf
Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Some of them don't even read .htaccess files in the directories where my scripts reside, so trying that type of hack would get you booted. just my $.02 -- PHP General

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Leonard Burton
HI All, Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Why turn off short tags? Does that make things more secure? Thanks, -- Leonard Burton, N9URK [EMAIL PROTECTED] The prolonged evacuation would have

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread lonewolf
Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Why turn off short tags? Does that make things more secure? In some respects it does because it means shortcuts are not allowed, it also means that someone trying to

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jochem Maas
Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread John Nichel
Leonard Burton wrote: HI All, Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Why turn off short tags? Does that make things more secure? Don't know if it makes it any more or less secure. I turn them off

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, [EMAIL PROTECTED] wrote: In some respects it does because it means shortcuts are not allowed, it also means that someone trying to hack through your site is going to be held to a higher standard (ASP tags are cut off as well, the only thing Most PHP site exploits I've

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jochem, Tuesday, November 15, 2005, 4:34:28 PM, you wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use of short-open-tags is probably not your

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Michael Crute
On 11/15/05, Jochem Maas [EMAIL PROTECTED] wrote: Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jim, Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority remaining, who write closed-apps for clients?? It will be when you have to

Re: Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Lynch
On Tue, November 15, 2005 11:35 am, Richard Davey wrote: Tuesday, November 15, 2005, 4:34:28 PM, you wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Miles Thompson
At 01:25 PM 11/15/2005, Jim Moseby wrote: Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 05:39:36PM +, Richard Davey wrote: Hi Jim, Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Jochem Maas [EMAIL PROTECTED] wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use of short-open-tags is probably not your biggest issue

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread John Nichel
Robin Vickery wrote: snip Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they were turned off by default, but that's bound to annoy a lot of people who've ignored the warnings. Hey, we

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Dan Lowe
On Nov 15, 2005, at 8:39 AM, Greg Donald wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Robin, Tuesday, November 15, 2005, 6:18:06 PM, you wrote: Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they were turned off by default, but that's bound to annoy a lot of people

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file

Re: Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
Hiyah Richard, On 11/15/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Robin, Tuesday, November 15, 2005, 6:18:06 PM, you wrote: Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they

RE: Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
cho tag reasonably portable? Hi Jim, Hi Richard. Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority remaining, who write

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done I maintain: Better to save the grief and do it right to start with, no? Maybe at some point I too will be lucky enough to only work on code that I authored.

Re[4]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Robin, Tuesday, November 15, 2005, 7:53:55 PM, you wrote: I did quote the note concerning them in its entirety. If I had simply quoted the manual as saying be sure not to use short tags then I could see your point regarding lack of context. But I didn't. Not in the message I was replying

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done I maintain: Better to save the grief and do it right to start with, no? Maybe at some point I too

Re[4]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jim, Tuesday, November 15, 2005, 8:01:01 PM, you wrote: Still best practice is to use long tags. Suppose you write a closed-app for a client who makes a business decision to move it to a hosted server that does not allow short tags... The down side is, the app will break. The up side is,

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done I maintain: Better to save the grief and do it right to start with, no? Maybe at some point I too

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 01:27:12AM +0200, Robin Vickery wrote: On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done ... for file in *.php; do