Re: [PHP] Form Validation

2009-08-13 Thread metastable
Ashley Sheridan wrote: > On Wed, 2009-08-12 at 12:21 -0400, Micheleh Davis wrote: > >> Please help. My form validation worked fine until I added the terms check >> at the bottom. Any ideas? >> >> >> >> //form validation step one >> >> function validateStep1(myForm){ >> >> //

[PHP] Re: Is select_db necessary?

2009-08-13 Thread Colin Guthrie
'Twas brillig, and Jay Blanchard at 12/08/09 17:32 did gyre and gimble: [snip] I'm interested to know why you consider this to be very flexible and how this leaves the selection in the database's hands? [/snip] Flexible because I can connect to more than one database on a server using one conne

[PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jaime Jose Perera Merino
Hi Ralph. If u want to understand the Martin's job u need to read about design patterns. A good place to start? Wikipedia ( http://en.wikipedia.org/wiki/Design_Patterns). The use of Design patterns is an advanced programming method. It helps us to improve our object oriented programation. I hope

RE: [PHP] Re: Is select_db necessary?

2009-08-13 Thread Jay Blanchard
[snip] So perhaps it depends on your view point and preconceptions and we're both coming at the "flexible" and "offloading" arguments with different starting views. Anyway, I only asked out of curiosity which I think has been satisfied (i.e. ultimately I don't fully agree with you! :p). [/snip]

[PHP] Where is interbase.dll?

2009-08-13 Thread HostWare Kft.
Hi, I downloaded PHP 5.3.0, and since then I can't use fbird_connect. When I inspected the installed files, I realized that php_interbase.dll is not there! Where is it? Or where can I get it? SanTa

[PHP] where does CURLOPT_QUOTE output go?

2009-08-13 Thread Tom Worster
just for example's sake, say i were doing something like $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'ftp://user:p...@server/dir/filename'); curl_setopt($ch, CURLOPT_UPLOAD, true); curl_setopt($ch, CURLOPT_FILE, $outfileh); curl_setopt($ch, CURLOPT_INFILE, $infileh); curl_setopt($ch, CURLOPT_

[PHP] literal strings vs variable strings

2009-08-13 Thread Martin Scotta
Hi all. Is this going to save me anything? something() ) return true; something() ) return true; -- Martin Scotta

[PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
Thanks Jaime, very nice, but I'm a programmer since 1982 and into OOP since 1988 with the outcome if IBM's C++ compiler on the OS2 platform. Don't u think it could be reasonable to ask if such an overhead IN PHP is necessary? does anybody agree that PHP might be the wrong language to accomplish

[PHP] Re: literal strings vs variable strings

2009-08-13 Thread Ralph Deffke
I dont think so, because PHP is an interpreter, the string 'something' has to be extracted and then be put in memory after that the code will compare the two memory locations. doesnt give me any benefit. however, comparing strings with the '==' does involve case sensitivity and also leading or tra

[PHP] Determining Calling Script Information

2009-08-13 Thread Matt Giddings
Hi, Is there a way (other than using __LINE__ and __FILE__) to determine which file & line called a function/method? I would like to add some debugging information to a method but I don't want to have to go through to each line that calls it and add the __LINE__ and __FILE__ parameters. Gue

Re: [PHP] Determining Calling Script Information

2009-08-13 Thread Andrew Ballard
On Thu, Aug 13, 2009 at 10:48 AM, Matt Giddings wrote: > Hi, > > Is there a way (other than using __LINE__ and __FILE__) to determine which > file & line called a function/method?  I would like to add some debugging > information to a method but I don't want to have to go through to each line > tha

Re: [PHP] Determining Calling Script Information

2009-08-13 Thread Robert Cummings
Matt Giddings wrote: Hi, Is there a way (other than using __LINE__ and __FILE__) to determine which file & line called a function/method? I would like to add some debugging information to a method but I don't want to have to go through to each line that calls it and add the __LINE__ and __FI

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Nathan Nobbe
On Thu, Aug 13, 2009 at 8:09 AM, Ralph Deffke wrote: > Thanks Jaime, > > very nice, but I'm a programmer since 1982 and into OOP since 1988 with the > outcome if IBM's C++ compiler on the OS2 platform. > > Don't u think it could be reasonable to ask if such an overhead IN PHP is > necessary? > >

Re: [PHP] Determining Calling Script Information

2009-08-13 Thread Matt Giddings
Thanks for the pointers! Matt Robert Cummings wrote: Matt Giddings wrote: Hi, Is there a way (other than using __LINE__ and __FILE__) to determine which file & line called a function/method? I would like to add some debugging information to a method but I don't want to have to go through

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jaime Jose Perera Merino
Hi Ralph, Sorry, I haven't understand your question. Do you think OOP isn't usefull for PHP? The PHP task is just to output a text file but the process might involve a lot of work: database access, communication with web services, etc. Do you think duplicate code is better than use more memory?

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
funny then that I see here serious people discussing the benefit of shortening code and cutting out commends. maby thats a general problem of our society that everybody think higher cheaper faster. this will have a limit guys !!! u can not go smaler then an atom. funny as well that I make my main

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Floyd Resler
I use a combination of procedural and OOP for my scripts. Mainly because I have a lot of old code I wrote before I understood OOP. Now that I do it makes my life so much easier because of the organizational and reusability benefits. In today's world I will gladly trade a little overhead

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
NO NO NO OOP is the best ever inventet ! see my comments on this list, I will also come up with an pure oop opensource OMS very soon. I just think a dam big pattern catalog like this one is like an elephant chacing mice. I mean I can think of customers asking for a documentation of course of

Re: [PHP] Where is interbase.dll?

2009-08-13 Thread Lester Caine
Sándor Tamás (HostWare Kft.) wrote: Hi, I downloaded PHP 5.3.0, and since then I can't use fbird_connect. When I inspected the installed files, I realized that php_interbase.dll is not there! Where is it? Or where can I get it? http://tech.groups.yahoo.com/group/firebird-php/files/ The discus

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Martin Zvarík
Ralph Deffke napsal(a): NO NO NO OOP is the best ever inventet ! see my comments on this list, I will also come up with an pure oop opensource OMS very soon. I just think a dam big pattern catalog like this one is like an elephant chacing mice. I mean I can think of customers asking for a

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Robert Cummings
Ralph Deffke wrote: funny then that I see here serious people discussing the benefit of shortening code and cutting out commends. maby thats a general problem of our society that everybody think higher cheaper faster. this will have a limit guys !!! u can not go smaler then an atom. funny as

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Robert Cummings
Martin Zvarík wrote: Ralph Deffke napsal(a): NO NO NO OOP is the best ever inventet ! see my comments on this list, I will also come up with an pure oop opensource OMS very soon. I just think a dam big pattern catalog like this one is like an elephant chacing mice. I mean I can think of

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Greg Beaver
Robert Cummings wrote: > > > Martin Zvarík wrote: >> Ralph Deffke napsal(a): >>> NO NO NO >>> >>> OOP is the best ever inventet ! >>> >>> see my comments on this list, I will also come up with an pure oop >>> opensource OMS very soon. >>> >>> I just think a dam big pattern catalog like this o

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
but what Im asking is that the reality? go and talk to accountant and tell them after spending soansomuch for the new site hes has to buy a new server ! what will acountant say, what u think. another more important point is in reality u take a project on on a specific hardware base. lets say it a

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
Greg I completly aggree, but dont miss the point that I'M adigted to OOP WHY NOT A FRAMEWORK CLOSER TO THE REAL POINT CALLED DOM design pattern for HTML XHTML XML SVG Database conection and retrieving. WHY CLASSES FOR CALLERS AND RECEIVERS AND INTERPRETERS. a is it a caller? a receiver? why t

RE: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jay Blanchard
[snip] u can not go smaler then an atom. [/snip] Neutrons, electrons, gluons, protons particles all smaller than an atom. There are others if you want to get into a discussion of quantum physics and mechanics, but we should probably take that discussion offline. Many folks here are building

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Robert Cummings
Ralph Deffke wrote: but what Im asking is that the reality? go and talk to accountant and tell them after spending soansomuch for the new site hes has to buy a new server ! what will acountant say, what u think. another more important point is in reality u take a project on on a specific hardwa

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread tedd
At 12:32 PM -0400 8/13/09, Robert Cummings wrote: With respect to why you see "shortening of code and cutting out comments", perhaps you are referring to the recent Calendar thread, where a bunch of us were just having some good old optimization fun. I for one enjoy the occasional diversion of

AW: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
for those of u not being a physician semiconductors are of pretty big atoms, but this is not the main problem, the problem is that u have to cut out structures off these semiconductors in order to build faster computers this matters. many physicians believe that we are pretty close to a ultimate

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Nathan Nobbe
On Thu, Aug 13, 2009 at 1:00 PM, Ralph Deffke wrote: > for those of u not being a physician > > semiconductors are of pretty big atoms, but this is not the main problem, > the problem is that u have to cut out structures off these semiconductors > in order to build faster computers this matters.

[PHP] design pattern

2009-08-13 Thread Ralph Deffke
so guys why u don't discuss Martins outcome? is there no advice, idears? isn't there a need for it? nobody want to use it? I WANT TO LEARN ralph_def...@yahoo.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] design pattern

2009-08-13 Thread Robert Cummings
Ralph Deffke wrote: so guys why u don't discuss Martins outcome? is there no advice, idears? isn't there a need for it? nobody want to use it? I WANT TO LEARN Maybe it's your grasp of the English language, maybe not. But I detect an air of aggression to your posts. ARE YOU JUST TROLLING?

Re: AW: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Shawn McKenzie
Ralph Deffke wrote: > for those of u not being a physician > > semiconductors are of pretty big atoms, but this is not the main problem, > the problem is that u have to cut out structures off these semiconductors > in order to build faster computers this matters. > > many physicians believe that

Re: [PHP] design pattern

2009-08-13 Thread Martin Scotta
On Thu, Aug 13, 2009 at 4:04 PM, Ralph Deffke wrote: > so guys > > why u don't discuss Martins outcome? > is there no advice, idears? > isn't there a need for it? > nobody want to use it? > > I WANT TO LEARN > > ralph_def...@yahoo.de > > > > -- > PHP General Mailing List (http://www.php.net/) > T

Re: [PHP] design pattern

2009-08-13 Thread Ralph Deffke
well u got to know me personal, however may be u mix it with sarcasm? may be I can't express that as good as I want in english. if u follow the posts didn't some put me in the stupid corner? I think its legal to ask why the question of Martin are not discussed. and I still think, my question what

Re: [PHP] design pattern

2009-08-13 Thread Ralph Deffke
Hi Martin, thanks for ur efforts, this is a lot of good work. for my opinion the start is a bit too much theoretical and valid for all type of application. In simple words, u are too close to the book. I would love to have something closer to the purpose of PHP and its applications. if u have a

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Bastien Koert
[snip]. Cryptic crap does > not mean that you're a clever programmer, it only shows that you don't know > any better. [/snip] I know people like this -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] session variables - help

2009-08-13 Thread Allen McCabe
I am asking a similar question to one I asked yesterday (which received no answers) with more information in the hopes someone will be kind enough to guide me. I have an order form populated with an array (as opposed to a database table). The user can enter quantities, and the form posts all the i

Re: [PHP] session variables - help

2009-08-13 Thread Ben Dunlap
> > I have the following code for order_update.php: > > [code] > > session_start(); > extract($_POST); > foreach ($_POST as $var => $val) { > if ($val > 0) { > $_SESSION[$var] = $val; > } else { > unset($var); > > } > header("Location: order_process.php"); > } > > [/code] > > This is not work

[PHP] mbstring.func_overload cannot been changed in htaccess

2009-08-13 Thread Tony Marston
I have reported this problem in http://bugs.php.net/bug.php?id=49238. It would appear that this option, which was first made available in PHP 4.2.0, has been silently dropped. Apparently the decision was made in order to fix http://bugs.php.net/bug.php?id=43227, but nothing was explicitly stated

Re: [PHP] session variables - help

2009-08-13 Thread Allen McCabe
Ben, First of all, I thank you for your time and help. My ai with using unset($var) in update_order.php is to set the SESSION variable for an item to ' ' (empty) so that it would not show up on the order summary (because my writeResultRow() function will only write a row if that variable is great