-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcron.php
executable file
·26 lines (24 loc) · 927 Bytes
/
cron.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
//Place cron.php in a non web accessible folder, set a cron to run
include("www/speed/Tester.php");
$callbackUrl = "http://www.binaryl.com/speed/callback.php";
$apiKey = "PUT API KEY HERE";
$dulles = "Dulles_IE8.DSL";
function testHelper($apiKeyString, $callbackUrlString, $logFileNameString, $countryString, $urlArray)
{
$test = new Tester();
$test->setApiKey($apiKeyString);
$test->setCallBackUrl($callbackUrlString);
$test->setLogFilename($logFileNameString);
$test->setCountry($countryString);
foreach ($urlArray as $key => $value)
{
$test->requestUrlToTest($value);
}
}
$amazonUrls = array(
"http://www.amazon.com",
"http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=apple&x=0&y=0",
"http://www.amazon.com/books-used-books-textbooks/b/ref=sa_menu_bo6?ie=UTF8&node=283155"
);
testHelper($apiKey, $callbackUrl, "tests/thirdParty/amazon.dulles.ie8.csv", $dulles, $amazonUrls);