Page 1 of 1
Where can i put a include statement
Posted: Wed Dec 03, 2025 11:05 pm
by spd2612
I am having trouble trying to find where i can put a include statement fo a php ip tracker file I have tested it and it works but cant find where i can put the include in either the header or footer php
Trying to add this so it will track desktop and mobile
Would rather not put it it in indexmobil or indexdesktop.php trying to use include once filename
Re: Where can i put a include statement
Posted: Thu Dec 04, 2025 6:41 am
by FSC830
Actually it is unclear (at least for me) what you ant to achieve...
Where should this tracker be visible?
The header.php contains already some "include" commands, why not adding yours at this section?
Regards
Re: Where can i put a include statement
Posted: Thu Dec 04, 2025 3:29 pm
by spd2612
Well I tried that and it breaks it
I just want to be able to monitor all connections to my site but dont want to have to log into the vm to see the access logs
I dont want to print them to the site just to a txt file
Re: Where can i put a include statement
Posted: Sat Dec 06, 2025 2:32 pm
by FSC830
Very unusual that an include breaks something, except the file which is to be included has an error or is not compatible in some way.
The syntax is correct?
The include contains a correct path and the tracker is located in that path?
And where at the page should the file (or the outcome) be visible?
Regards
Re: Where can i put a include statement
Posted: Sat Dec 06, 2025 3:38 pm
by spd2612
Thank you for the reply
I got it to work but i put the entire code at the top of the index pages
With all the inconsistency in php version, plugins and modules it is amazing it runs as well as it does