Re[2]: [PHP] Code optimization: single vs. double quotes?

2003-10-28 Thread Tom Rogers
Hi, Tuesday, October 28, 2003, 9:26:13 AM, you wrote: CWP> Curt Zirzow CWP> on Monday, October 27, 2003 3:16 PM said: >> 5. no newline after the tr. :) >> >> There are some broswer issues with tr and td's not being on the >> same line. CWP> Ok I resisted sending t

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Justin French
On Tuesday, October 28, 2003, at 09:29 AM, Chris Shiflett wrote: --- Justin French <[EMAIL PROTECTED]> wrote: a) echo " "; The curly braces are superfluous here, since you are using double quotes. I'm not sure if you like having them there, but I think that less syntax yields a simpler and clea

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Justin French
On Tuesday, October 28, 2003, at 09:23 AM, Chris W. Parker wrote: Exactly what is the problem with: echo " "; it's purely personal -- i don't enjoy writing, re-writing, debugging or modifying code with 100's of escaped double quotes everywhere when they really aren't needed. Justin -- PHP Ge

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > p.s. And yes Curt you touched on why I put my 's all on > one line. Some browsers (I know IE does) like to add whitespace if > the and are not all on the same line. Which is why I didn't complain about that. :-) You had your closing tr on the s

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- DvDmanDT <[EMAIL PROTECTED]> wrote: > It's said that you shouldn't use tables for layout, but does people > accutually listen to that? And what instead? You can use stylesheets. These work well with PHP. Well, that's my attempt at getting this thread back on topic. :-) Chris = My Blog

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Curt Zirzow on Monday, October 27, 2003 3:16 PM said: > 5. no newline after the tr. :) > > There are some broswer issues with tr and td's not being on the > same line. Ok I resisted sending this earlier but it appears it is now necessary. ;) Here is how I WOULD ha

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Mike Migurski
>It's said that you shouldn't use tables for layout, but does people >accutually listen to that? And what instead? This is veering off-topic, but: - michal migurski- contact info

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread DvDmanDT
It's said that you shouldn't use tables for layout, but does people accutually listen to that? And what instead? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to find out m

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Exactly what is the problem with: > > > > echo " "; > > > > I don't see the problem. > > I agree with you, actually. The only things I don't like are: > > 1. The use of the bgcolor attribute

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Exactly what is the problem with: > > echo " "; > > I don't see the problem. I agree with you, actually. The only things I don't like are: 1. The use of the bgcolor attribute 2. The name of the variable :-) 3. The fact that your td is not tabbe

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Chris Shiflett on Monday, October 27, 2003 2:30 PM said: > --- Justin French <[EMAIL PROTECTED]> wrote: >> a) echo " "; > > The curly braces are superfluous here, since you are using double > quotes. I'm not sure if you like having them there, but I think that > les

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- Justin French <[EMAIL PROTECTED]> wrote: > a) echo " "; The curly braces are superfluous here, since you are using double quotes. I'm not sure if you like having them there, but I think that less syntax yields a simpler and cleaner appearance. However, I hate single quotes around HTML attribu

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Justin French on Monday, October 27, 2003 2:12 PM said: > a) echo " "; > b) echo " "; > c) echo ' '; > d) echo " "; Exactly what is the problem with: echo " "; I don't see the problem. Chris. -- Don't like reformatting your Outlook replies? Now there's relief!

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Justin French
On Tuesday, October 28, 2003, at 04:29 AM, Chris W. Parker wrote: olinux on Friday, October 24, 2003 9:41 PM said: echo " "; uggh - apparently you've never had to redesign a site/application that uses this style. This is one table cell, but when you work this style

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Jay Blanchard on Monday, October 27, 2003 9:31 AM said: > CSS! :) Oh that's what he meant? I thought he was talking about the quoting style used on that line. Chris. p.s. The last time I actually used bgcolor was probably almost a year ago. :) -- Don't like refo

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Jay Blanchard
[snip] >>> echo " "; > > uggh - redesign recommend? [/snip] CSS! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
olinux on Friday, October 24, 2003 9:41 PM said: >>> echo " "; > > uggh - apparently you've never had to redesign a > site/application that uses this style. This is one > table cell, but when you work this style through a big > app, it's a huge pain (waste of time)

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread olinux
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > I've always been a big fan of: > > > echo " "; > uggh - apparently you've never had to redesign a site/application that uses this style. This is one table cell, but when you work this style through a big app, it's a huge pain (waste of time)

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 12:03, Marek Kilimajer wrote: > Robert Cummings wrote: > >>echo " "; > > > > Unless your $bgcolor2 variable has double quotes in it, then the above > > is poor HTML style. I don't think omission of double quotes has been > > considered valid HTML since version 3 (admittedly t

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Marek Kilimajer
Robert Cummings wrote: echo " "; Unless your $bgcolor2 variable has double quotes in it, then the above is poor HTML style. I don't think omission of double quotes has been considered valid HTML since version 3 (admittedly though, as long as they let it render, people will use it :) Cheers, Rob. Si

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Chris W. Parker
Justin French on Friday, October 24, 2003 12:57 AM said: > I also adapted wrapping all variables in {parenthesis} so that PHP has > no chance of being confused heh... actually those are {curly braces} and these are (parenthesis). > No special chars or vars: > echo

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 03:57, Justin French wrote: > On Friday, October 24, 2003, at 10:43 AM, Shawn McKenzie wrote: > > [--CLIPPETY CLIP CLIP--] > > Whereas this is clear and easy to work with: > echo " "; > Unless your $bgcolor2 variable has double quotes in it, then the above is poor HTML st

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread olinux
> No special chars or vars: > echo ' '; > > For cases with vars and special chars, I think these > look terrible: > echo ' '; I'm a fan of this style - works great with syntax highlighting in homesite. olinux > echo " "; > > Whereas this is clear and easy to work with: > echo " ";

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Joachim Krebs
chr(10)); Cheers, Nathan - Original Message - From: Robert Cummings To: Shawn McKenzie Cc: PHP-General Sent: Thursday, October 23, 2003 10:30 PM Subject: Re: [PHP] Code optimization: single vs. double quotes? On Thu, 2003-10-23 at 20:43, Shawn McKenzie wrote: I came across this post and was hoping

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Richard Baskett
> From: Robert Cummings > To: Shawn McKenzie > Cc: PHP-General > Sent: Thursday, October 23, 2003 10:30 PM > Subject: Re: [PHP] Code optimization: single vs. double quotes? > > > On Thu, 2003-10-23 at 20:43, Shawn McKenzie wrote: >> I came across this post and was hoping

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Justin French
On Friday, October 24, 2003, at 10:43 AM, Shawn McKenzie wrote: For example it is better to code: Code: echo ' '; vs. Code: echo " "; "Better" is a very loose term, but I've adopted a coding style which uses single quotes on all lines which don't require special character

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Nathan Taylor
for the new line character. Horizontal Tab - define("T", chr(9)); New Line - define("NL", chr(10)); Cheers, Nathan - Original Message - From: Robert Cummings To: Shawn McKenzie Cc: PHP-General Sent: Thursday, October 23, 2003 10:30 PM Subject: Re: [PHP]

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 20:43, Shawn McKenzie wrote: > I came across this post and was hoping to get a gurus opinion on the > validity. TIA > > -Shawn > > I remember reading somewhere re: PHP coding that it is a better coding > practice to use single quotes as much as possible vs. using double quo

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-23 Thread Jordan S. Jones
I remember reading something very very similar from one of the main php developers.. However, for the life of me, I can't remember where it was exactly... Jordan S. Jones Shawn McKenzie wrote: I came across this post and was hoping to get a gurus opinion on the validity. TIA -Shawn I remembe

[PHP] Code optimization: single vs. double quotes?

2003-10-23 Thread Shawn McKenzie
I came across this post and was hoping to get a gurus opinion on the validity. TIA -Shawn I remember reading somewhere re: PHP coding that it is a better coding practice to use single quotes as much as possible vs. using double quotes in scripts. When using double quotes, you are forcing PHP to

[PHP] Re: PHP code optimization

2002-07-11 Thread Richard Lynch
>Question on optimizing code for quicker runtimes. >Which is quicker (this is on a webpage also..NOT >commandline)? > > > >OR > > abc You will not be able to measure the difference until you have a zillion of them... >Both do the same thing and are legit but wondering >which is better from an

Re: [PHP] PHP code optimization

2002-07-09 Thread Nick Oostveen
I could be wrong, but I seem to remember reading somewhere that using ?> text Peter Thoenen wrote: > >>Question on optimizing code for quicker runtimes. Which is quicker (this >>is on a webpage also..NOT >>commandline)? >> >> >> >>OR >> >> abc > >Because the difference is going to be undetecta

Re: [PHP] PHP code optimization

2002-07-09 Thread Chris Shiflett
Peter Thoenen wrote: >Question on optimizing code for quicker runtimes. >Which is quicker (this is on a webpage also..NOT >commandline)? > > > >OR > > abc > Because the difference is going to be undetectable, this would probably be a question that only someone really familiar with the engine

Re: [PHP] PHP code optimization

2002-07-09 Thread Analysis & Solutions
On Tue, Jul 09, 2002 at 12:32:59PM -0700, Peter Thoenen wrote: > Which is quicker (this is on a webpage also..NOT > commandline)? > > > OR > abc The difference is very marginal. Write whichever makes more sense in the context. Short tidbits just don't matter. Larger stretches of text are e

Re: [PHP] PHP code optimization

2002-07-09 Thread Kevin Stone
I'm just guessing but I would think there would be no difference. The only way I think there would be a differnce is if you did many many echo statements as opposed to one echo or one ?>output block To: <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 1:32 PM Subject: [PHP] PHP cod

[PHP] PHP code optimization

2002-07-09 Thread Peter Thoenen
Question on optimizing code for quicker runtimes. Which is quicker (this is on a webpage also..NOT commandline)? OR abc Both do the same thing and are legit but wondering which is better from an optimization standpoint (NOT interested in readability or *proper* code here) -Peter

[PHP] code optimization

2001-09-15 Thread Christian Dechery
I just got (1:30 AM) something that was really annoying me. I had to do it... but I got so into the "I must do it" thing I ended up doing it in an "unoptimized" way, I think. I got to this conclusion for the amount of loops I'm using and the number of lines of code. The problem is in my previo