473,778 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to refresh my page every ten seconds?

3 New Member
can someone help me with code to refresh my PHP pages every ten seconds?
Mar 4 '08
16 6883
ronverdonk
4,258 Recognized Expert Specialist
is thr any equivalent statement in php to refresh the content like meta tag(<meta http-equiv="refresh" content="10">) in HTML?
Not really. PHP is a server side language, HTML and JavaScript run client side. And the latter has to be refreshed. So if you could force PHP to send a new HTML page to the client, you could. But I'd stick with HTML/JavaScript solution if I were you.

Ronald
Mar 5 '08 #11
susee
10 New Member
Not really. PHP is a server side language, HTML and JavaScript run client side. And the latter has to be refreshed. So if you could force PHP to send a new HTML page to the client, you could. But I'd stick with HTML/JavaScript solution if I were you.

Ronald
Let me explain in detail, I ve a HTML page in which I display some values reading from an XML which change dynamically.I have used PHP to read from the xml. Now my problem is to get the xml entries whenever i refresh my page. How can i do this?
Mar 5 '08 #12
hsriat
1,654 Recognized Expert Top Contributor
Let me explain in detail, I ve a HTML page in which I display some values reading from an XML which change dynamically.I have used PHP to read from the xml. Now my problem is to get the xml entries whenever i refresh my page. How can i do this?
Please tell in details how are you doing it... with some code.
Mar 5 '08 #13
ronverdonk
4,258 Recognized Expert Specialist
Let me explain in detail, I ve a HTML page in which I display some values reading from an XML which change dynamically.I have used PHP to read from the xml. Now my problem is to get the xml entries whenever i refresh my page. How can i do this?
You are not talking about an RSS feed, are you?

Ronald
Mar 5 '08 #14
susee
10 New Member
You are not talking about an RSS feed, are you?

Ronald

may be similar to that. Help me out in tis...
Mar 6 '08 #15
rocksoccer
1 New Member
If possible, do not use the javascript method. Some people block the javascript on their browser.
Mar 6 '08 #16
susee
10 New Member
hi
i have a php script inside html.i used <meta http-equiv="refresh" content="10"> in the body of the page,the page is getting refreshed but the php script is not getting refreshed to get the updated data.so guys pls tel us the exact solution for getting the refreshed data.for this we need a php statements to refresh.
i think am quite clear now.
Mar 6 '08 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1190
by: Mark Andrews | last post by:
What would be the best way to build a little asp page that: displays http://www.yahoo.com waits for 45 seconds displays http://www.google.com loops forever Thanks in advance, Mark
7
40206
by: Willem | last post by:
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do so. It should be possible, Right? I don't know much about JavaScript. Thanks for the help.
0
1990
by: Marcus | last post by:
Hello! I'm buildning a webpage in ASP.NET using Visual Basic. The page contains a datagrid, a dropdownlist, some textboxes and a couple of buttons. The datagrid displays barcodes from a table in a database (Sql Server 2000). I want to automatic update the datagrid when new new posts arrives in the table. Before the datagird is updated, the choosen index from the
3
2196
by: IGotYourDotNet | last post by:
Let me just start by saying taken over someones else code that they wrote just for them to understand(no comments, documentation NOTHING) is a task on in itself. anyway, i have a page that needs to be refreshed every 10 seconds but not looses the item selected in the drop down, how and can it be done? example: drop down user selects Football i want all the scores to be refreshed every 10 seconds but not loose football as the selection....
8
5881
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page unloads. When the callback method is raised, only the method in the web page is run and the page never refreshes, it seems it all happens on the server side. I am trying to refresh the constrols on the page inside the callback method, but when id...
4
2819
by: Phil | last post by:
Hi. A fairly basic sort of 'direction to go in' question of the type that can be hard to find an answer to! I am using ASP.NET (framework 1.1) to present data on web pages (IIS 5.0 / IE6) from tables (in SQL Server 8). What are the best methods of getting the web page being viewed to update automatically when data in the table changes? Not necessarily a detailed answer, but a good pointer please.
10
32884
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every minute. But the page always display the dialog box ask me to resend the information. How to disable this warning message. I using POST and REQUEST to get the data from user input page. Thanks all
1
1868
by: jonathan184 | last post by:
how to let ajax refresh a page every few secs Hi I got a php page that did that is being fed data that changes every few secs, i need some help in doing some code in letting the page aut refresh it self without refreshing the whole browser. id id it php and flickers, so could somebody show me example code how i could do this please. Thanks in advance
2
1792
by: szy1 | last post by:
Hello, Im using very basic script to show records form database(mysql) and link that remove the record. And the problem is when i click delete link IE show same page with link 'delete' marked as visited, i can only click one more time or hit F5 to get actual results.(without record that i clicked to remove) How i can make this script to show actual content immediatly
3
9883
by: tvnaidu | last post by:
How to auto refresh page for every 3 minutes by passing command part of URL?. I need to refresh one page automatically by passing that refresh command part of url, for example if I want to refresh my-own-web-page.com: some URL like this to auto reload? http://www.my-own-web-page.com?auto-refresh=3
0
9629
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10127
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8957
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5500
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2865
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.