[PHP] which is better? PHP's Session handler or Mohawk's Session handler

2003-01-22 Thread Heo, Jungsu
(Sorry for disturb you if this kind of message posted earlier. but I can't find answers on mailint list archive) Hello, there! I'm developing web service. There are several web servers for one Service. (Linux virtual server manages load banlance) Php's original session handling function save

Re: [PHP] which is better? PHP's Session handler or Mohawk's Sessionhandler

2003-01-22 Thread Jason k Larson
I can't say which or what is better, but something else to add to the picture is that you can define your own session handlers. This would allow you to store all the session data in a high speed database or something similar to suit your liking (especially from a load balancing or high

Re: [PHP] Which is better coding style...

2001-04-20 Thread Christian Reiniger
On Thursday 19 April 2001 22:31, you wrote: Definitely the second style :) (If we were talking about C(++) then the first would have even been forbidden by my companies coding standard as well as several coding standards of other companies I worked for.) put_on item='asbestos battle armor'

Re: [PHP] Which is better coding style...

2001-04-20 Thread Geir Eivind Mork
On Thursday 19 April 2001 21:48, Steve Lawson wrote: Personally, I hate trailing {'s Personally, I hate having the {'s on the next line. I always trail them in others code when they have them on the next line :) and there are thousand of ways that the people here displays textblocks. some

Re: [PHP] Which is better coding style...

2001-04-19 Thread Christian Reiniger
On Thursday 19 April 2001 19:57, you wrote: Which is better? function blah() { switch( $bob ) { case 1: return "this"; function blah() { $retval = ""; switch( $bob ) { case 1: $retval = "this"; break; In other words, is it good practice to exit

RE: [PHP] Which is better coding style...

2001-04-19 Thread ..s.c.o.t.t.. [gts]
i say the first style. unneeded variables and other thingies just obscure things and make it harder to maintain. -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Subject: [PHP] Which is better coding style... Which is better? function blah() { switch( $bob

Re: [PHP] Which is better coding style...

2001-04-19 Thread Steve Lawson
l way I can just make one change, return $retval . "/B"; instead of changing 3 different returns. SL. - Original Message - From: "Boget, Chris" [EMAIL PROTECTED] To: "Php (E-mail)" [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 11:57 AM Subject: [PH

RE: [PHP] Which is better coding style...

2001-04-19 Thread Sander Pilon
etval = "other"; break; } return $retval; } -Original Message- From: ..s.c.o.t.t.. [gts] [mailto:[EMAIL PROTECTED]] Sent: 19 April 2001 21:31 To: Php-General Subject: RE: [PHP] Which is better coding style... i say the first style. unneeded variables and othe

Re: [PHP] Which is better coding style...

2001-04-19 Thread Martín Marqués
On Jue 19 Abr 2001 23:35, Miles Thompson wrote: Amen! For both elimination of trailing {'s , and a good clear break. I don't know how trailing {'s came about, but I find the blocks are harder to follow. I consider them HIDDEN rather than trailing, but I cut my teeth on Pascal, and FoxPro.

Re: [PHP] Which is better coding style...

2001-04-19 Thread Miles Thompson
mal way I can just make one change, return $retval . "/B"; instead of changing 3 different returns. SL. - Original Message - From: "Boget, Chris" [EMAIL PROTECTED] To: "Php (E-mail)" [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 11:57 AM Subje

RE: [PHP] Which is better coding style...

2001-04-19 Thread ..s.c.o.t.t.. [gts]
nder Pilon [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 4:32 PM To: 'Php-General' Subject: RE: [PHP] Which is better coding style... Definitely the second style :) (If we were talking about C(++) then the first would have even been forbidden by my companies coding standa

Re: [PHP] Which is better coding style...

2001-04-19 Thread Norbert Pfeiffer
Hi, This participates the clearest for me, but unfortunately not usual. if (...) {...commands... switch(...) {case commands... case commands... case commands... } while(...) {...commands... } } else {...commands...

RE: [PHP] Which is better coding style...

2001-04-19 Thread Philip Olson
coding style? here's what pear has to say : http://www.php.net/manual/en/pear.standards.php http://www.php.net/manual/en/pear.standards.control.php [ example ] switch (condition) { case 1: action1; break; case 2: action2; break; default:

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Adams
On 19 Apr 2001 14:08:13 -0700, ..s.c.o.t.t.. [gts] [EMAIL PROTECTED] wrote: OOooo... it drives me nuts when i see beginning brackets on seperate lines ;) i like to start brackets on the same line as the statement and finish them on a line of their own. Very strong agreement here. I think a lot

Re: [PHP] Which is better coding style...

2001-04-19 Thread David Bouw
Your coding style is not the most used.. But I must be honest and tell you that I also find the clearest way... I also use it on all my own code.. It has got the advantage that you always see all brackets (no need to scroll to the right to find a bracket) and if you go down on the same

Re: [PHP] Which is better coding style...

2001-04-19 Thread Plutarck
nuts to see "} else {" also) -Original Message- From: Sander Pilon [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 4:32 PM To: 'Php-General' Subject: RE: [PHP] Which is better coding style... Definitely the second style :) (If we were talking about C(+

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Lee
I preffer the first. -- Chris Lee [EMAIL PROTECTED] ""Boget, Chris"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Which is better? function blah() { switch( $bob ) { case 1: return "this"; case 2: return "that"; default:

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Lee
r"; break; } return $retval; } -Original Message- From: ..s.c.o.t.t.. [gts] [mailto:[EMAIL PROTECTED]] Sent: 19 April 2001 21:31 To: Php-General Subject: RE: [PHP] Which is better coding style... i say the first style. unneeded variables and other thingies just

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Lee
I would like to see an editor with a built in code beutifier and un-beutifier. I like the if (true) { } else { } method, but pear standards are if (true) { } else { } it would be nice to see ultra edit convert it to the first format for me and save it as the second for pear. --

Re: [PHP] Which is better coding style...

2001-04-19 Thread Szii
- Original Message - From: Chris Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 3:51 PM Subject: Re: [PHP] Which is better coding style... I would like to see an editor with a built in code beutifier and un-beutifier. I like the if (true) { }

RE: [PHP] Which is better coding style...

2001-04-19 Thread Joe Sheble \(Wizaerd\)
Message- From: ..s.c.o.t.t.. [gts] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 2:05 PM To: Php-General Subject: RE: [PHP] Which is better coding style... OOooo... it drives me nuts when i see beginning brackets on seperate lines ;) i like to start brackets on the same line

[PHP] Which is better??

2001-04-06 Thread Curtis
Hello, I am wondering witch way is that best to go with my forms.. Self Referenceing or have the data sent to another page for the processing. i.e. (option one) My forms page is named "submit.phtml" form action="submit.phtml" method="post" OR (option two) My forms page name is

Re: [PHP] Which is better??

2001-04-06 Thread Michael Kimsal
Why are you having problems with option one? That one makes more sense to me, because you can have the FORM in only one file, and show error messages/etc on the same page as the form. psuedo-code ? if (submitted) { check values if no errors(redirect to next page) if errors } ? ?= $errors;?

Re: [PHP] Which is better??

2001-04-06 Thread Felix Kronlage
On Fri, Apr 06, 2001 at 12:27:22PM -0400, Curtis wrote: Self Referenceing or have the data sent to another page for the processing. I usually do self-referencing, since this way I have everything in one place, don't rely on two scripts, don't need to open two files in my editor etc. :) -fkr

RE: [PHP] Which is better??

2001-04-06 Thread Jonathan Sharp
thod="POST" -js -Original Message- From: Curtis [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 9:27 AM To: php Subject: [PHP] Which is better?? Hello, I am wondering witch way is that best to go with my forms.. Self Referenceing or have the data sent to another