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
gVisit and serendipity
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: gVisit and serendipity
You should not put the code there. Instead edit your templates index.tpl file and place the script there.
Regards,
Garvin
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/