View Single Post
Old 12-04-2007, 09:53 PM   #7 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Sock,

It indeed is a abbreviated section of the actual code. Just like you said. Although, you are almost right everywhere in your post. I believe that do do not have to declare var $var before you begin. Since PHP 5 (like I read) uses private, public and others to declare a pre-set var, it taked the edge off of PHP 4. I am still a rookie when it comes to PHP 5 and OOP, since a lot of servers still use the old PHP 4.4.7 and some a bit higher. Since you've got to update phpMyAdmin AND PHP on a global scale, some buyers' scripts might malfunction. That'll be pretty bad for business don't you think? Anyways, I am still going through with my initial script, posted in my first post.

Although I do not have a good grasp of PHP 5 OOP, I am dedicated to learn. So if you got some examples for me to clarify the code a little, gimme some tips and here and there, a peek into some of your script, that would be great!

Oh yeah, I am dutch, so don't mind any typo's I made. :)

Thanks.

[edit]
Oh yeah, is the code for generating a TOTAL QUERY TIME at the bottom of the page correct? The main idea is, that is counts EVERY query's time to process, adds it up and then displays it. Same function can be used with an array to call up all the functions or simply to COUNT them. For example;

"The page processed #queries, it took #seconds and the total page loading time whas #seconds". Every #seconds has a microtime(); exploded and added up ($time[0] + $time[1]) and then displayed.
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote