Page 2 of 2

Re: PHP Link not being updated - Help please

Posted: Mon 20 Mar 2017 10:24 pm
by RayProudfoot
Thanks! :clap:

Re: PHP Link not being updated - Help please

Posted: Mon 20 Mar 2017 10:33 pm
by ConligWX
steve wrote:No, didn't cost anything.
Yep, I told you guys it was free:) the only issue users may face is they must ensure all links within their site are pointing to https url content.

https://support.google.com/chrome/answe ... cator&rd=1

Re: PHP Link not being updated - Help please

Posted: Mon 20 Mar 2017 10:44 pm
by RayProudfoot
Thanks Simon. There are no links on my website to the banner. I use it exclusively in a couple of signature blocks in forums. I haven't had to alter my sig for this place as it's not an https site... yet. ;)

Re: PHP Link not being updated - Help please

Posted: Mon 20 Mar 2017 11:07 pm
by RayProudfoot
Since I updated my sig and saved it 40 mins ago it is still showing the same time as when it was saved. Why isn't it updating?

The code I used is the same as my sig here with the exception of the extra 's'. I've removed opening and closing brackets to show the actual code.

url=https://www.cheadlehulmeweather.co.uk/][imghttps://www.cheadlehulmeweather.co.uk/banner.php?source=view[/img[/url

Stumped. :roll:

Re: PHP Link not being updated - Help please

Posted: Mon 20 Mar 2017 11:28 pm
by ConligWX
RayProudfoot wrote:Since I updated my sig and saved it 40 mins ago it is still showing the same time as when it was saved. Why isn't it updating?

The code I used is the same as my sig here with the exception of the extra 's'. I've removed opening and closing brackets to show the actual code.

url=https://www.cheadlehulmeweather.co.uk/][imghttps://www.cheadlehulmeweather.co.uk/banner.php?source=view[/img[/url

Stumped. :roll:

mine work like so:

Code: Select all

[url=https://www.conligwx.org/][img]https://www.conligwx.org/banner.php[/img][/url]
like so:

Image

Image

Re: PHP Link not being updated - Help please

Posted: Mon 20 Mar 2017 11:48 pm
by RayProudfoot
Thanks. Do you think the source=view might be the cause of the lack of updates?

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 3:07 am
by saratogaWX
Yes, the "?source=view" is likely the cause. On my scripts, that causes a display of the source code for the PHP script.
For your banner, you want the banner.php to just run (and send back an image, not the PHP source code).

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 9:17 am
by RayProudfoot
Thanks saratoga but removing that part made no difference. A tech guy there suggested it's down to their caching so they will see if they can change it for non-secure sites.

All this has happened because they've moved to a https site. It's primarily a discussion place for flight simmers so why they feel the need for such high levels of security I don't really know.

My weather site has no known risks. Yes, it runs Adobe Flash but only for world times and the phase of the moon. It's never been hacked. I despair.

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 10:14 am
by ConligWX
If their webserver is caching data, then your banner would not update correctly in realtime. Is your web browser caching the banner as well?

I ask as my webcam image which is on my Webserver was being cached by my web browser when using the Weather Station Template by Brian Underwood.

I ended up adding some html code to the cam.php so web browser did not cache that information either.

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 10:25 am
by RayProudfoot
Pretty sure my browser is not caching data because when I visit this place the banner shows the current time. Proof enough?

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 11:03 am
by ConligWX
RayProudfoot wrote:Pretty sure my browser is not caching data because when I visit this place the banner shows the current time. Proof enough?
so you can see part of your banner - the time, but no other info from banner is shown on the other forum??????

Each website will have different methods of showing web content. Apache, nginx, IIS, and various Caching methods with Zend Opcache etc. what may work on one, may not work on another.

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 11:21 am
by RayProudfoot
Toxic17 wrote:
RayProudfoot wrote:Pretty sure my browser is not caching data because when I visit this place the banner shows the current time. Proof enough?
so you can see part of your banner - the time, but no other info from banner is shown on the other forum??????

Each website will have different methods of showing web content. Apache, nginx, IIS, and various Caching methods with Zend Opcache etc. what may work on one, may not work on another.
No, I can see the whole banner but the time is frozen. It needs their caching to change so it's refreshed when the topic is read by users. Just like here. I don't think there's anything I can do now except wait for them to change the caching.

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 9:25 pm
by duke
Your opening 'img' tag is also missing a ']' assuming you cut'n'paste correctly ;)

Re: PHP Link not being updated - Help please

Posted: Tue 21 Mar 2017 10:50 pm
by RayProudfoot
duke wrote:Your opening 'img' tag is also missing a ']' assuming you cut'n'paste correctly ;)
That was deliberate and just to show here. Using the full text just showed the graphic and not the code.