Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to refresh a page when a client connects to it?

Status
Not open for further replies.

mmills1

Programmer
Apr 8, 2010
18
GB
I have a client which automatically sends a cgi file to the server can I get the PHP page to refresh when it reconnects?
 
have your cgi script create a text file with a timestamp.
create a php script that checks the timestamp.
add some javascript to the page to be refreshed that uses ajax to query the php script referred to above. if the timestamp changes then use javascript to refresh the page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top