Tjoosten / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

Internal Server Error 500 #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I try to connect to Google Analytics Account with simple code and server 
generates Internal Server Error 500. What's wrong?
<?php
define('ga_email','busybackson@gmail.com');
define('ga_password','mypass');
define('ga_profile_id','111111111'); /* instead of 11111111 is my acc number */
require 'gapi.class.php';

$ga = new gapi(ga_email,ga_password);
$ga->requestReportData(ga_profile_id,array('browser','browserVersion'),array('pa
geviews','visits'));
?>

Link to script: http://www.l-i-n.ru/gapi/gapi.php

GAPI @version 1.3
PHP 5

Original issue reported on code.google.com by busyback...@gmail.com on 18 Jan 2012 at 11:07

GoogleCodeExporter commented 9 years ago
Yep.. I have the same problem =(

Original comment by evak...@gmail.com on 17 Aug 2012 at 5:10

GoogleCodeExporter commented 9 years ago
there is a problem with $ga->requestReportData.. and check the line require 
'gapi.class.php'; it should be require 'gapi.class.php'; or require 
'./gapi.class.php'; it depends on your .htacess

Original comment by yahontyh...@gmail.com on 20 Aug 2012 at 9:21