[PHP] Re: PHP 4 OOP, re-using a object?

2006-09-10 Thread M. Sokolewicz
Micky Hulse wrote: Hi, I am slowly learning how to use classes properly... quick question: # Create the object: $doSplash = new RandomSplash(); // Create the object. Shouldn't I be able to call that object like below, throughout my page: ...HTML... ?php $doSplash-randomize('css'); ?

[PHP] Re: [PHP-DB] OOP vs Functions and includes

2004-11-16 Thread Bruno B B Magalhães
Pablo, This is a very complex discussion... But generalizing, a LOT, OO is more appropriated for big systems due to its extensibility and easy maintenance, while procedural approach works best for small applications that don't require to much updates and aren't too complex. Here is a

[PHP] Re: [PHP-DB] OOP vs Functions and includes]

2004-11-16 Thread Jonel Rienton
Original Message Subject: Re: [PHP-DB] OOP vs Functions and includes From: Jonel Rienton [EMAIL PROTECTED] Date: Tue, November 16, 2004 7:04 pm To: [EMAIL PROTECTED] Hi again Pablo, not sure how the inner workings of PHP are as far as instantiating new classes. other languages

[PHP] Re: PHP 5/OOP, Functionality similar to an Abstract method?

2004-06-12 Thread Justin Patrin
Chris wrote: I have an abstract class with quite a few 'children'. Essentially I want to be able to interchange calls between children (Take a script, written with ClassA and redefine the variable as ClassB etc.) Though there is a large subset of methods all of these children declare, there

Re: [PHP] Re: PHP 5/OOP, Functionality similar to an Abstract method?

2004-06-12 Thread Chris
Justin Patrin wrote: Chris wrote: I have an abstract class with quite a few 'children'. Essentially I want to be able to interchange calls between children (Take a script, written with ClassA and redefine the variable as ClassB etc.) Though there is a large subset of methods all of these

[PHP] Re:[PHP] dreading OOP

2003-01-21 Thread Sukrit
Larry == Larry Brown [EMAIL PROTECTED] writes: Larry places. However, my mind apparently works different and I Larry keep trying to relate the OOP structure to what I already Larry know which equates an object to a function. I am resolving This happens a lot with me too :)

RE: [PHP] Re:[PHP] dreading OOP

2003-01-21 Thread Larry Brown
Thank you, I'll check this book out. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Sukrit [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Re:[PHP] dreading OOP Larry == Larry Brown [EMAIL

[PHP] Re: PHP and OOP

2002-06-27 Thread Jesper Brunholm
[EMAIL PROTECTED] wrote: i want to build a site in fully OO style but that will significantly slow down execution time Do you have any documentation on this? - I'm getting quite used to read and hear the very opposite. Previously programmers even argued that asp was faster than php because

[PHP] Re: PHP and OOP

2002-06-27 Thread Kondwani Spike Mkandawire
I still don't get what the big fuss of OO programming is about I do agree that it is stylistic hence helps someone else who hasn't written your code to follow up on what you are doing... But so far the programs I have been writing in OO supported languages have been written and scripted on an as

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Jay Blanchard
[snip] I still don't get what the big fuss of OO programming is about ...How many of us have done so? Could some one please point out another feasible advantage of OO programming a part from the fact that I would make someone else's work easier by using this style of programming... [/snip] It's

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread SP
Spike Mkandawire [mailto:[EMAIL PROTECTED]] Sent: June 27, 2002 8:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP and OOP I still don't get what the big fuss of OO programming is about I do agree that it is stylistic hence helps someone else who hasn't written your code to follow up on what you

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 08:10 AM, Kondwani Spike Mkandawire wrote: I still don't get what the big fuss of OO programming is about I do agree that it is stylistic hence helps someone else who hasn't written your code to follow up on what you are doing... But so far the programs I

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Remy Dufour
I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself ?phpfunction getmicrotime(){list($usec, $sec) = explode( ,microtime());return ((float)$usec + (float)$sec);}function

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread B i g D o g
Dufour [EMAIL PROTECTED] To: SP [EMAIL PROTECTED]; Kondwani Spike Mkandawire [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 11:34 AM Subject: Re: [PHP] Re: PHP and OOP I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread SP
]] Sent: June 27, 2002 1:34 PM To: SP; Kondwani Spike Mkandawire; [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP and OOP I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself ?phpfunction getmicrotime

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
: RE: [PHP] Re: PHP and OOP Never tested it so I tried it out for the fun of it. I didn't use yours but I used the other guy's code on separate pages and did it ten times. I guess I was wrong, I got around 2% difference. Definitely not the 20% difference that guy got in his. He was probably using

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Martin Towell
, 2002 11:50 PM To: Kondwani Spike Mkandawire; [EMAIL PROTECTED] Subject: RE: [PHP] Re: PHP and OOP OO is slower then procedural. You can test that out yourself or look at this article where the guy did a very basic test. Maybe they will fix the speed problem by the time php5 comes around. http

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
greatly... its all situational. -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:04 PM To: 'SP'; 'Remy Dufour'; 'Kondwani Spike Mkandawire'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: PHP and OOP Comparison (do not compare the speeds

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: PHP and OOP I haven't got around to reading all the other replies yet, so this reply might already be covered... So I went to that url - and okay, according to the person writing that page, there's a ~3sec increase in the time it takes to execute