Where can i put a include statement

Post Reply
spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Where can i put a include statement

Post by spd2612 » Wed Dec 03, 2025 11:05 pm

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
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Where can i put a include statement

Post by FSC830 » Thu Dec 04, 2025 6:41 am

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
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Where can i put a include statement

Post by spd2612 » Thu Dec 04, 2025 3:29 pm

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
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Where can i put a include statement

Post by FSC830 » Sat Dec 06, 2025 2:32 pm

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
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Where can i put a include statement

Post by spd2612 » Sat Dec 06, 2025 3:38 pm

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
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

Post Reply