Can someone explain why the following block of code returns boolean false? I know with certainty that both the unshown path and token are correct.
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'error.log');
ini_set('html_errors', 0);
ini_set('display_errors', 0);
error_reporting(E_ALL);
define('PIWIK_INCLUDE_PATH', realpath('...'));
$result = file_get_contents(PIWIK_INCLUDE_PATH . '/index.php?module=API&method=Resolution.getResolution&idSite=1&date=yesterday&period=week&token_auth=...');
var_dump($result);
Roddy