This information is here for reference only, if you want the latest version of the speed test, visit www.auditmypc.com/free-sitemap-generator.asp – thanks!
Running V1.03
Having a problem with the logging.
I have the permissions of speeds.log set to
-rwxrwxrwx 1 nobody other 3264 Jul 31 15:35 speeds.log
logger.php seems to be writting to the file, but I don’t actually get the speedtest numbers in the file.
Sample line:
2007-07-31 15:26:18 1.2.3.4 Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2
.0.0.5 /speedtest/logger.php — —
Problem related to getting values into logger.php maybe??
if (isset($HTTP_POST_VARS['testspeeds'])) {
$testspeeds = $HTTP_POST_VARS['testspeeds'];
} else {
$testspeeds ="—t—";
}
running PHP 5.0.0 (cli) (built: Sep 20 2004 21:04:06)
And apache Server version: Apache/2.0.50

I have renamed the speedtest.htm file to index.htm in or speedtest dir.
A couple html changes in that file, but thats about it.
I’ve messed with the logger.php script to try to get things working. No joy though, so I’ve just put back the original.
It does log, just does not log the actually speedtest numbers (aka the values passed into logger.php)
Hi Chris,
Can you explain that in greater detail?
Thanks!
Globals = on and it is still not working. Anymore ideas?
TIPS: Could possibly be not passing the variables. ??
Thanks for sharing a very nice utility!
We installed the ASP version of 1.03 on a microsoft server running IIS 6 and have tweaked everything we can think of but still unsuccessful with logging.
we’ve followed the renaming instructions for logger-to-db.asp,
we’ve given IUSR / modify to logger.asp and to the mdb file (for kicks),
we’ve moved the mdb file to the root directory of the server and then modified the directly path statement to this file in the logger.asp file.
Still no joy. Is there a version problem or has there been success in logging with ASP version 1.03?
We did find an entry in the server’s error log indicating that it had received an invalid SQL statement.
Thanks again and for any additional tips!
It is passing the variables – the flash speed test looks for a statement in the logging file and if it’s not there it will not log. I put this in the docs (at least I think I included this).
I’ll check on this and post back – please remind me if you don’t hear something in the next few days.
Regards,
Jim.
Bill,
I am using pretty much the same setup as you on one of my servers and I have logger.php running as .asp, can you try this and see if it makes a difference. It shouldn’t and in fact, should be looking for the logger.asp if .php is not found, but can you try anyway.
If you need help doing this, let me know.
Regards,
Jim.
I’m a bit curious about this statement. I’ve not seen any reference to it on the site nor in the read me file. I did find: "grant modify permissions to speeds.log by right clicking on speeds.log, properties, security and add IUSR_(???) and you should be all set!"
I’m assuming there was a file name change from speeds.log to st-results.asp ?
In reference to replacing the logger.asp with the php file – can I just drop the php file in it’s place or does this require additional mods?
Appreciate your work and your help Jim!
Bill
What is your phone number and I’ll call you. We’ll get this figured out, then I’ll write up some better documentation. (send me a private message by clicking on AMPC)
How about that, free phone support for the speed test
Regards,
Jim.
I gave Bill a call and found the problem – it was with the Database table names and I have corrected the download file.
For those of you that wanted to log speed test results, I have updated the download file with the corrected database.
And Bill – you can delete that .php entry we created and rename the logger file back to .asp if you like – either way, it will continue working.
Best regards,
Jim.
We were blown away by Jim’s eagerness to find out why we we having trouble and his anxiousness to get it working for us.
After a short bit of poking, prodding and tweaking here and there, we are logging to the database.
Thanks again Jim!
We have restored the file to the original ASP extension without incident.
Feature suggestion: as you play around with the code, it would be handy to see the upload and download results stored as two different values instead of a combined number.
Peace – Bill
HI Jim:
I just tried downloading a new copy
auditmypc.com/downloads/auditmypc-stsb-asp.zip
Not sure if you changed the version number or not, but when I extract I get a file "35451 Jul 23 09:45 auditmypc-speed-test-v1.03.swf" that looks to be the V1.03 from back in July.
And of course when it logs it does not put numbers in.
Where should I be getting the newest version.
PS: Any progress on the accuracy issue?
Brad
To ptcjjhill,
You were right on – thanks for the suggestion! The variables (field names) were off and speed test results were not logging like they should. It has been corrected.
Best regards,
Jim.
Hi Brad,
What you your phone number (send me a private message by clicking on AMPC).
I’ll give you a call and get this completed.
Regards,
Jim.
Also – make sure that in logging.asp, the very first line has <!– echo –>.
It is not an ASP command, but it needs to be there for logging to work.
I downloaded the latest version today and installed it, got everything working except the log file also shows "— —" for the speeds.
I am running the PHP version. I am also waiting for activation. Does that make a difference?
If it was an activation issue, it would never get that far, so no worry there.
The logging error in PHP is because there is text that has to appear in your logging.php file and if not there, it won’t register.
What is the content of your logging.php file?
Regards,
Jim.
I have the same problem – tried it on a couple boxes with diff setups/versions of php+ apache to boot.
The problem appears to be that $HTTP_POST_VARS['testspeeds'] doesnt get set (or passed on)…
Brad – Still need a little time – I will get to it.
Here’s my logger.php file. I only changed the HTTP_POST_VARS to $_POST in attempt to fix the issue. It doesn’t work either way.
<? if (isset($_POST['testspeeds'])) { $testspeeds = $_POST['testspeeds']; } else { $testspeeds ="---t---"; } $date = date("Y-m-d"); // Current date $time = date("H:i:s"); // Current time if (isset($_SERVER['REMOTE_ADDR'])) { $ip_address = $_SERVER['REMOTE_ADDR']; } else { $ip_address = getenv('REMOTE_ADDR'); } if (isset($_SERVER['HTTP_USER_AGENT'])) { $browser = $_SERVER['HTTP_USER_AGENT']; } else { $browser = ""; } if (isset($_SERVER['PHP_SELF'])) { $page = $_SERVER['PHP_SELF']; } else { $page = ""; } if (isset($_SERVER['HTTP_REFERRER'])) { $referrer = $_SERVER['HTTP_REFERRER']; } else { $referrer = ""; } $myFile = "speeds.log"; $fh = fopen($myFile, 'a') or die("can't open log file"); $stringData = $date."t".$time."t".$ip_address."t".$browser."t".$page."t".$referrer."t".$testspeeds."n"; fwrite($fh, $stringData); //or die("can't write to log file");; fclose($fh);// or die("can't close log file");; ?>I found the problem, here is the fix for speed test logging
In logger.php file (or logger.asp for ASP users), make sure that the first line of the file says echo – don’t ask
So,
<!– echo –>
<?
…code…
?>
I just tested this on ht tp: //connectionspeedtest.info and it works fine.
Let me know if it works for you.
Regards,
Jim.
That did the trick!
Has the activation been taken care of?
Thanks!
if you run php the way it should be (with register globals=off), then don’t expect to get the speed results logged into speeds.log.
If you must have this working, change register globals on in you php.ini – until the maintainer fixes it.
cheers
-chris.
If you filled out the speed test registration form here:
auditmypc.com/free-speedtest.asp
then you are all set.
Brad,
Give me a few days on this and I’ll get back to you – I am on vacation and will test when I am back.
Did you modify the speedtest code at all? If so, what mods did you make? What does the code look like now?
Also, make sure that in logging.php (or logging.asp), the very first line has <!– echo –>
Best regards,
Jim.