Page 1 of 1

php code on top of page

Posted: Sun Sep 25, 2005 11:20 am
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

Re: php code on top of page

Posted: Mon Sep 26, 2005 1:50 pm
by garvinhicking
Try inserting it into your index.php file :)

Regards,
Garvin