php code on top of page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
lauterunfug
Regular
Posts: 54
Joined: Wed Mar 16, 2005 9:26 am

php code on top of page

Post by lauterunfug »

hi there one more time :roll:

I am using a referral-script on my page. For that, I included the so called log.php in a php-sidebox-plugin. That works fine so far.

The problem is, the it seems that the log-script records wrong hits from time to time. I heard that this wouldn't happen if I would include the log.php on top of the page.

The question is also: where do I have to write the 'include(/path/to/log.php);' so that it get executed first when the page gets loaded?

serendipity_config_local.inc.php
serendipity_config.inc.php
..??

thanx
tom
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: php code on top of page

Post by garvinhicking »

Try inserting it into your index.php file :)

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/
Post Reply