I might be way off here. (I once ran all my weewx pages as php files and
included everything in them so when making changes I didn't have to do it
to every page, just the included php script, but went back to html and I
can't find the source from those days).
>From (my failing) memory I renamed index.html.tmpl to index.php.tmpl so the
index was created as index.php rather than index.html and any included php
code would run when loading index.php
Regards,
Steve.
On Sunday, 11 September 2016 00:39:24 UTC+10, Jim Jaltuch wrote:
>
> I am pretty new to all this, and I'm trying to show forecast data on my
> website. The php code will actually generate the all the forecast data,
> so I used the following code in the index.html.tmpl file....
>
> <?php
> require_once('printforecast.php')'
> ?>
>
> And the php code simply does not run.
>
> I looked around and found that adjustments need to be made in order to run
> the php code within html. I have my site loaded on a Synology DSM 6.0;
> using the Apache background server (Webstation).
>
> If anyone can lend some insight on how to do this, it would be very much
> appreciated.
>