gVisit and serendipity
Posted: Tue Sep 13, 2005 11:43 am
I've just using serendipity, and i'm trying to get google's gVisit to wrk with it. With gVisit i have to put in a couple of lines of javascript and i'm puttin them into the index.php file, and it works except that on the actual page it spits out a couple of lines of code which are:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/yani/index.php:1) in /var/www/html/yani/index.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/yani/index.php:1) in /var/www/html/yani/index.php on line 21
which is refering to these lines in index.php:
header('HTTP/1.0 200');
header('X-Blog: Serendipity'); // Used for installer detection
Is index.php the right place to be putting gVisit code, i'm not very experienced in either PHP or Javascript.
I appreciate any help
thanks
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/yani/index.php:1) in /var/www/html/yani/index.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/yani/index.php:1) in /var/www/html/yani/index.php on line 21
which is refering to these lines in index.php:
header('HTTP/1.0 200');
header('X-Blog: Serendipity'); // Used for installer detection
Is index.php the right place to be putting gVisit code, i'm not very experienced in either PHP or Javascript.
I appreciate any help
thanks