[PHP] PHP OOP x Procedural Performance - Conclusions

2003-05-30 Thread William N. Zanatta

  First of all. Thanks everybody for the feedback. It was very precious to
hear from you.

  So, there's no big differences unless we're working with heavy
processes. Even in this case, the performance seems to be very good in
both practices, thus I'll keep OOP.

  My OOP concepts are not really sharp yet but I'm learning more and more
everyday and I feel very satisfied with that. I still get caught in some
aspects of classes abstraction, probably due to the lack of design.

  I see OOP fitting in all contexts I've got until now, at least due to
code organization.

  Also, I like that thoughts of using it primarily for Core libraries (I
have my own 'class Core' too) which drives much of my system. But I'm
wondering about that discussion on 'outputs'. I don't see any reasons
why don't do that, we can have an abstract class and other classes
implementing 'drivers' for the needed formats and that would fit really
good in some environments where data are output in many formats.


  Thank you all guys!!!

  Regards,


 William N. Zanatta


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP OOP x Procedural Performance

2003-05-29 Thread William N. Zanatta

  It is a known issue that function calls are expensive for the processor.

  The OOP let us better organize the code but, thinking in function (or
method) calls it may be more expensive than in the procedural form.

  My question is, has anyone made any tests regarding the performance of
OOP versus procedural language? Is it a good choice to code in OOP with
PHP ?


-=[ William N. Zanatta ]==[ [EMAIL PROTECTED] ]=-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] crontab help

2001-03-09 Thread William N. Zanatta

Arnold,

 In the minutes field on crontab, you can add as many values as you want
separated by a colon. Try somthing like this...

00,05,10,15,20,25 and so until 55 * * * 
^
THIS IS A MINUTES FIELD WITH MANY VALUES 

 We use it here and it does the job fine. Try reading crontab manpages
for additional info.

William

Arnold Gamboa wrote:
 
 hi there.
 
 is there a way to tell crontab to do:
 
 "run script every 5 mins for 1 hour"..
 
 i have this mass email script that is so huge that i need it to chunk into
 records and make sure that it will run every 5 mins for 1 hour.
 
 Thanks for any help.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] SQL statement in PHP

2001-02-16 Thread William N. Zanatta

Matt,

Maybe the mistake is at the quotes...
Just replace the double quotes inside the select statement by single
quotes...

Try something like:

snip code
  $sql = "select Business_Name,Trading_Details where
Business_Type='Consultancy' and Bassingbourn != '0' from Main";
/snip code  
^   ^ ^ ^


Matt Davis wrote:
 
 Can anybody help with this
 
 If I put the following statement in PHP my browser tells me that there is an
 error on the line.
 
 //create sql statement
 $sql = "select Business_Name,Trading_Details where Business_Type =
 "Consultancy" and Bassingbourn != "0" from Main";
 
 If I remove
 
 where Business_Type = "Consultancy" and Bassingbourn != "0"
 
 It work fine, but no variation of the above line works. Am I missing
 something really obvious. Please help as I am very quickly becoming bald.
 
 Matt.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]