![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
|||||||
| FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Free Broadband Speed Test Questions regarding our Free Speed Tests including the broadband test available for download. |
|
|
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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.
Code:
<?
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 http://connectionspeedtest.info and it works fine. Let me know if it works for you. Regards, Jim. |
|
||||
|
If you filled out the speed test registration form here:
http://www.auditmypc.com/free-speedtest.asp then you are all set. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|