I'm working on an OFFLINE SYSTEM that uses PHP and MySQL. Something that can be used by a small network of PC's to do transactions. These are problems I need to solve:
1] I need A CODE THAT REFRESHES THE PAGE EVERY TWO OR SO MINUTES. That way the new entries in the database gets seen on the page and I don't have to press F5 or click refresh everytime.
2] How do you set CHMOD PERMISSIONS WHILE USING APACHE AS MY SERVER (OFFLINE)?
Is the idea of an OFFLINE SYSTEM sounds garbage? Is it okay to use it for transactions within a small network? SUGGESTIONS WOULD BE HIGHLY APPRECIATED. Thanks in advance
you could just add a refresh meta in the page that would be refreshed. the idea of an offline system is just right for you because no one will be using your system outside of your personal network.
It's easier to just use meta refresh - but on the other hand php refresh would mean more people would have the page refreshed. Why? Because you can disable it in most browsers!
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
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
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...??
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.
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.
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.