RE: [PHP] Structured Code vs. Performance

2007-11-29 Thread Tomi Kaistila
ifferent case. But if you do a lot of objects, you can instead of the global scope put all of your constants into classes, which works just as well. This avoids name conflicts. Hope that answered your question. Tomi Kaistila PHP Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Representing microtime() values

2007-11-27 Thread Tomi Kaistila
? > >greets >Zoltán Németh Precision issue is what I also thought of. But it does seem quite strange to me that anything with more than two float points would loss precision so badly it isn't worth letting people to print out. Here is one workaround: $a = explode(' '

RE: [PHP] Representing microtime() values

2007-11-26 Thread Tomi Kaistila
not much of anything else. PHP still behaves the same way with the float numbers when you try to look at them. And that is the part that I wish to understand. PHP clearly stores a number with more than two decimal points when you call microtime(). But when you print it, it only shows two. Why is

[PHP] Representing microtime() values

2007-11-26 Thread Tomi Kaistila
do calculations with them, I lose all but the two digits along the way. Tomi Kaistila PHP Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mixing classes

2004-10-20 Thread Tomi Kaistila
Hi all! I finally got what I was after, after numerous tips and suggestion. Thank you for your patience. Special thanks to Bruno Magalhães, Thomas Goyne, and Davy Obdam. Thanks again :-) -- developer & programmer me tomi kaistila home http://www.datamike.org gnupg 0xFA63E4C7 -- PHP Gen

Re: [PHP] Mixing classes

2004-10-20 Thread Tomi Kaistila
. -- developer & programmer me tomi kaistila home http://www.datamike.org gnupg 0xFA63E4C7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mixing classes

2004-10-19 Thread Tomi Kaistila
available. Best regards, Davy Tomi Kaistila wrote: Hi! Thanks for the idea, hadn't actually thought of it that way. I had thought of passing objects (instance the db object to the auth object) by reference, but when thinking that while one class might only need the help of one other class,

Re: [PHP] Mixing classes

2004-10-19 Thread Tomi Kaistila
t;; function Auth () { //Create an instance of you database class $this->dbObject = new Database($arg1, $arg2, $etc); } function doSomething() { // Execute a query $this->dbObject->query($sql); } } ?> I hope this helps Best regards, Davy Obdam Tomi Kaistila wrote: Hey! I&#

Re: [PHP] Mixing classes

2004-10-18 Thread Tomi Kaistila
g. P.S Sorry for replying to you Dan, accidentally just went and hit the reply button. This is a copy of that message to the mailing list. -- developer & programmer me tomi kaistila home http://www.datamike.org gnupg 0xFA63E4C7 -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Mixing classes

2004-10-18 Thread Tomi Kaistila
or handling. -- developer & programmer me tomi kaistila home http://www.datamike.org gnupg 0xFA63E4C7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mixing classes

2004-10-18 Thread Tomi Kaistila
w to solve this issue? I've looked for a solution for some time now, to no result. My PHP version is 4.3.8. -- developer & programmer me tomi kaistila home http://www.datamike.org gnupg 0xFA63E4C7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php