Weather by You!

Templates and Projects support => Php templates => Topic started by: genesis on February 16, 2014, 05:19:13 PM

Title: automatically update the web page
Post by: genesis on February 16, 2014, 05:19:13 PM
hi,
I do not know if the topic has already been discussed, I did not find anything about it, this is the problem, how to automatically update the web page.
I tried with this code

<meta http-equiv="refresh" content="50;url="/>

but do not know exactly where to put it, I've tried various solutions, but it does not work.
thanks
Title: Re: automatically update the web page
Post by: uncle_bob on February 26, 2014, 05:05:16 PM
It might be worth while looking at BT's Sager forecaster script as this refreshes the page automagically and it's a very good forecaster.

Here's his thread here: http://sandaysoft.com/forum/viewtopic.php?f=14&t=9901
Title: Re: automatically update the web page
Post by: genesis on February 28, 2014, 04:37:03 AM
thanks for the link!
complex article for me! I do not know English and I translate with google chrome ... translation is not always reliable ..
Title: Re: automatically update the web page
Post by: Altaelva on February 28, 2014, 01:16:57 PM
Ho implementato il codice, come si mette WBY forum. E funziona.
Vedere www.kvikklunsj.net/webcam.php

I have implemented the code, as you put WBY forum. And it works.
See www.kvikklunsj.net/webcam.php
Title: Re: automatically update the web page
Post by: genesis on March 01, 2014, 12:43:01 AM
Hello,
I saw your website and I'm happy for you, but I would like to update the home page of data in real time, my problem and know in which file to place the code, header_menu.php?
index.php?
today.php?
booh!

Ciao,
ho visto il tuo sito e sono contento per te, ma io vorrei aggiornare la pagina home dei dati in tempo reale, il mio problema e sapere in quale file posizionare il codice, header_menu.php?
index.php?
today.php?
booh!
Title: Re: automatically update the web page
Post by: Altaelva on March 01, 2014, 07:08:50 AM
Hello again. Now I have placed the code in my index.php file. But there will be no "live" view, but the website updated at the same as Cumulus update. I chose Cumulus update every 5 minutes.
Was it the way you wanted it?

www.kvikklunsj.net
Title: Re: automatically update the web page
Post by: genesis on March 01, 2014, 12:32:49 PM
ciao,
cumulus aggiorna in base alle impostazioni che uno sceglie "web setting" io ho 5 minuti, pero per aggiornare la pagina devi per forza premere F5, non lo fa in automatico

hello,
cumulus updates according to the settings one chooses "Web settings" I have 5 minutes, but you have to refresh the page by pressing F5 strength, it does not automatically.
Title: Re: automatically update the web page
Post by: genesis on March 01, 2014, 12:51:24 PM
Nei giorni scorsi ho provato di tutto, alla fine la pagina rimaneva bloccata e mi segnalava errori di ogni tipo, stasera vado per riprovare nel mio sito web di prova...magicamente funziona! Urra!
Ho inserito il codice nel file index.php

In recent days I have tried everything, at the end of the page remained blocked, and I pointed out errors of any kind, tonight I am going to try again in my test website ... magically works! Hooray!
I inserted the code in index.php file

(http://i61.tinypic.com/fbyrdg.jpg)
Title: Re: automatically update the web page
Post by: genesis on March 01, 2014, 01:01:32 PM
 :-X
the clock does not work
 :'(
Title: Re: automatically update the web page
Post by: Altaelva on March 01, 2014, 02:11:10 PM
Ok. I placed the file in line 84. (After line 83: Content begins)
And you have til Complete the code, like this:
<meta http-equiv="refresh" content="300;url=http://kvikklunsj.net/index.php"/>
(With Your own url)

And my home page, updates every 5 minutes. (300 sek.)

Your clock looks fine, in every Language, except italian !!!


Title: Re: automatically update the web page
Post by: genesis on March 01, 2014, 02:28:23 PM
Il mio problema che adesso funziona ma non mi fa più vedere le lancette dell'orologio, e non so il perchè. Per le prove, modifiche ecc..ho un'altro sito web, se vanno bene trasferisco il file in quello principale, in effetti nel sito http://senigalliaweather.altervista.org/index.php dove faccio la prova l'orologio funziona mentre nel sito principale
http://senigalliameteo.altervista.org/index.php non funziona.

My problem now that works but does not make me see the hands of the clock, and I do not know why. For testing, changes, etc. .. I have another site, if they fit I transfer the file to the main one, in fact the site http://senigalliaweather.altervista.org/index.php where I do the test, the clock works while the main site
http://senigalliameteo.altervista.org/index.php not work.

for the moment I have too much confusion in my head maybe a fresh mind thinks is best
 :o