PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 09-28-2005, 01:49 AM   #1
Edomondo
Orange Mole
 
Edomondo's Avatar
 
Join Date: Jan 2004
Location: In outer space
Posts: 37
Response Time Graph

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.
Attached Images
File Type: gif background.gif (3.2 KB, 21 views)
Attached Files
File Type: txt response_time.php.txt (4.8 KB, 11 views)
Edomondo is offline   Reply With Quote
Old 10-11-2005, 04:19 AM   #2
Edomondo
Orange Mole
 
Edomondo's Avatar
 
Join Date: Jan 2004
Location: In outer space
Posts: 37
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.
Attached Images
File Type: gif background.gif (10.5 KB, 19 views)
Attached Files
File Type: txt response_time.php.txt (5.0 KB, 15 views)
Edomondo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
set time limit Macfplus Script Installation 0 11-17-2006 08:03 AM
Slow Response Time jmitchell Troubleshooting 7 02-11-2005 07:29 AM
Indexing one page at a time synnalagma How-to Forum 3 03-31-2004 11:52 PM
why script can run all time ? fr :: anonymus The Mole Hole 3 12-10-2003 08:25 AM
Request Time mongeon Mod Requests 1 10-05-2003 10:15 AM


All times are GMT -8. The time now is 03:55 PM.


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