Adsense Tracker problems

Adsense Tracker problems

Posted by: xlupub
Posted on: 2005-05-14 16:22:00

I've installed Adsense Tracker, but can't get it to work. When I try to view stats for any date range, I get the following:

Warning: Unexpected character in input: ' ' (ASCII=12) state=1 in /usr/local/dh/cgi-system/php.cgi on line 2966

Parse error: parse error, unexpected T_STRING in /usr/local/dh/cgi-system/php.cgi on line 2966

Can anyone help me?

Re: Adsense Tracker problems

Posted by: ardco
Posted on: 2005-05-14 16:49:00

Just a guess, but maybe you FTP transferred a zip or tar file using ASCII instead of binary mode?

BobS

Re: Adsense Tracker problems

Posted by: xlupub
Posted on: 2005-05-14 18:02:00

Hi BobS! Thanks for the reply.

I FTP transferred (through Dreamweaver FTP) 42 unzipped files.
So I don't think that's it.



Re: Adsense Tracker problems

Posted by: ardco
Posted on: 2005-05-15 05:11:00

This involves a different program, but google found the same error, and maybe it will help some.

BobS

Re: Adsense Tracker problems

Posted by: xlupub
Posted on: 2005-05-18 19:59:00

Yes, that was the problem. Had to have the programmer modify the settings file to return the correct path.

Thanks for the input!

Re: Adsense Tracker problems

Posted by: ardco
Posted on: 2005-05-18 22:13:00

In case it goes away (before this), here's what was at the link:

In reply to:

kashirat
Member

Registered: 2005-04-27
Posts: 3

I'm not sure if anyone still even reads these forums, but I've found the problem..

For some reason the global variable $_SERVER['SCRIPT_NAME'] returns the cgi path rather than the path of your file.

You'll want to change, in organize/photos-*.php

$_SERVER['SCRIPT_NAME'] to $_SERVER['PHP_SELF']

Cheers


BobS

Tags: php cgicgi systemparse errorinput asciiusrlocalunexpected characterstatehelp