Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Closed TopicStart new topic
> How To Autorefresh A Page Every Two Minutes?
mobious
post May 2 2005, 11:57 AM
Post #11


Advanced Member
*******

Group: Members
Posts: 113
Joined: 14-January 05
From: Philippines
Member No.: 3,271



mike, using php to add a refresh to the header is just the same as adding a meta tag in html. the purpose of the the meta tag is to act like the headers being sent to the browser.
Go to the top of the page
 
+Quote Post
karlo
post May 2 2005, 12:06 PM
Post #12


Privileged Member
*********

Group: Members
Posts: 618
Joined: 30-October 04
From: Philippines
Member No.: 2,049



QUOTE(cmatcmextra @ May 1 2005, 09:55 PM)
It may be the modern way but people still have javascript disabled even if they don't want it to. An annoying virus may come along and disable it for them. There are a lot of idiots out there who don't know how to adjust security settings.

Also it's harder to remember. If I had to do it anyway out of those 3, I'd use php because it will refresh for everyone regardless
*


Are you really sure that PHP has a refresh? Do you have a proof? Do you have a website that uses that method? Well, some Ad Remover software, like Ad Muncher, sometimes the user disables META Redirect.
Go to the top of the page
 
+Quote Post
electriic ink
post May 2 2005, 12:47 PM
Post #13


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



QUOTE
Are you really sure that PHP has a refresh?


Yes, they just said and if would be a pretty dumb language if it didn't

QUOTE
Do you have a proof?


Doesn't the trap17 shoutbox use refresh and it does refresh.

QUOTE
Do you have a website that uses that method?


Yes trap17. It would hard to work it out though because you don't see it in the view source. Even if it doesn't there has to be some website which uses php refresh.

QUOTE
sometimes the user disables META Redirect.


We're not talking about meta redirect, we're talking about php refresh.

If may not work 100% of the time but it will work more often than the other methods. Anyway isn't the point of obtaining a server sided langauge to use it?



Go to the top of the page
 
+Quote Post
mobious
post May 3 2005, 03:35 AM
Post #14


Advanced Member
*******

Group: Members
Posts: 113
Joined: 14-January 05
From: Philippines
Member No.: 3,271



just to summarize this topic so that everything is clear.

Methods for refreshing:

JavaScript - not really a good way because end users tend to disable their js support.

Meta Refresh - Some say that end users also can disable them

PHP Refresh through header() - Most effective i think.
Go to the top of the page
 
+Quote Post
leiaah
post May 3 2005, 12:36 PM
Post #15


Super Member
*********

Group: Members
Posts: 436
Joined: 21-January 05
From: Koronadal City, Philippines
Member No.: 3,358



THANKS YOU GUYS! EVERYTHING'S ALMOST WORKING THANKS TO ALL OF YOU! smile.gif laugh.gif laugh.gif
Go to the top of the page
 
+Quote Post
Mike
post May 3 2005, 07:04 PM
Post #16


Owner of Sub-Zero
********

Group: Members
Posts: 159
Joined: 17-November 04
Member No.: 2,325



QUOTE(karlo @ May 2 2005, 12:06 PM)
Are you really sure that PHP has a refresh? Do you have a proof? Do you have a website that uses that method? Well, some Ad Remover software, like Ad Muncher, sometimes the user disables META Redirect.
*



That explains why you looked stupid on my site when you said that the shoutbox was ugly, and that the boards had a bad layout. Your shoutbox is really bad, in my opinion. But nonetheless, you said mine wasn't good and you didn't even bother to check it out. If you checked it out, you would have noticed that it refreshes every 5 seconds. And it uses the header() method.

CODE

// What's at the top of my shoutbox.php page:

header('Refresh: 5');
Go to the top of the page
 
+Quote Post
snlildude87
post May 3 2005, 07:11 PM
Post #17


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



I'm going to close this thread before karlo comes and starts bickering, and everyone will start flaming each other. Besides, the problem seems to be solved anyway.

Thread closed.
Go to the top of the page
 
+Quote Post
iGuest
post Oct 10 2007, 05:28 AM
Post #18


Hail Caesar!
*********************

Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



Yup, agree with electriic ink. And furthermore, the html one is easier and simpler. But there's 1 thing which I am concern about. Does all browsers support that...??

-jumper_twh
Go to the top of the page
 
+Quote Post
iGuest
post Jan 23 2008, 04:52 AM
Post #19


Hail Caesar!
*********************

Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



you can use this also
How To Autorefresh A Page Every Two Minutes?

//Define on page at top
<?php
$timer = 120;
$title = "Sania Mirza Gallery";
$gid = 120;
$url = $_SERVER['PHP_SELF'].'?id='.$gid;
?>
//define in <body> TAG

Echo '<META HTTP-EQUIV="Refresh" CONTENT="'.$timer.'; URL='.$url.'" />';

//Define at user end or on page


Echo " <small>Self Refresh- $timer Secs</small><br/>\and";

Cheers,
Abhi


-reply by Abhijeet