PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Submissions (http://www.phpdig.net/forum/forumdisplay.php?f=24)
-   -   Response Time Graph (http://www.phpdig.net/forum/showthread.php?t=2178)

Edomondo 09-28-2005 01:49 AM

Response Time Graph
 
2 Attachment(s)
This is a quick mod to display the response time per hour as a graph.

/!\ You need to have the GD lib installed. The PNG generated can only be protected using htaccess, if you only use PhpDig identification, the image can be seen by anybody.

Just place background.gif in PHPDIG/admin/img/ and response_time.php in PHPDIG/admin/.

In PHPDIG/admin/statistics.php line 53, add :
PHP Code:

    if($type == 'responsebyhour') {
?>
<img src="response_time.php" alt="Response Time by Hour" width="444" height="250">
<?php
    
}

The graph is now displayed in the statistics page by clicking Response time by hour.

Now you can easily determine when response times are best/worst and when your search engine is most used.

The code is very dirty so don't hesitate to post a cleaner version.

Edomondo 10-11-2005 04:19 AM

2 Attachment(s)
Here is an updated version fixing some small bugs.

You can change the color of response time & queries on lines 55 & 56 using RGB values.

I'm also offering a new layout of the graph.

Don't hesitate to post a cleaner version of the script.


All times are GMT -8. The time now is 10:57 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.