![]() |
|
#1
|
||||
|
||||
[class] TimerPHP Code:
please also see: PHP Timer function __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
||||
|
#2
|
||||
|
||||
Sample code to test TIMER classLet's say you save the TIMER class above as timer.lib.php.
In the same folder, you have a PHP script saved as test.php and inside this file you add the following code: PHP Code:
Let me know if this doesn't work for you, cause I am coding blind here (IOW, I didn't test it out yet). __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Personally, I would have made this one a function call instead of a class but it works nicely this way too. :)
|
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [class] 404 search function code | jrobbio | MySQL / PHP Forum | 6 | 22-Apr-2003 10:32 |
| [function] Timer | JdS | PHP Code Library | 0 | 18-Jan-2003 19:11 |
| [class] Auto add / strip slashes regardless of setting. | JdS | PHP Code Library | 0 | 17-Jan-2003 02:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The