LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2004, 10:22 PM   #1
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Rep: Reputation: 15
PHP/mySQL


Does anybody know how to refresh php scripts individually? My intranet site has certain php scripts, all on the same page, that need to be refreshed every so often so the most current data can be viewed.

The workstations that the site will be on will not have the luxury of having a keyboard and mouse...they all have touch screens. I need the indivudual scripts to auto-refresh in a pre-determined amount of time.

The php scripts feed off of a mySQL database.

Thanks
 
Old 04-20-2004, 02:06 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
u may use a javascript refresh() function in your script. make a google search on that. u'll find code examples that refresh the display given an amount of time...
cheers
 
Old 04-20-2004, 01:34 PM   #3
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Try this

<?
header( 'refresh: 5; url=/url_to_refresh/' );
?>
 
Old 04-20-2004, 02:35 PM   #4
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Or stick this in the page's HTML header:
Code:
<meta http-equiv="refresh" content="60;URL=url.php">
 
Old 04-22-2004, 03:02 PM   #5
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Original Poster
Rep: Reputation: 15
those methods do work, but some scripts need to update very frequently. If the screen flickers each time a refresh is done, it may give me a seizure.

There has to be a way to have some scripts on a page refresh, while others do not. individual is the key.
 
Old 04-22-2004, 03:25 PM   #6
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
First...
How namy scripts total?
How frequently does the fastest one need to refresh?
 
Old 04-24-2004, 07:28 AM   #7
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Original Poster
Rep: Reputation: 15
we are looking at roughly 15-20 scripts per papge at maximum, with, at the worst, a script needing an update from the database every second or less. I really need the option of having my scripts update at any interval I need. One script needs to be pretty much continuously updated.
 
Old 04-24-2004, 09:30 AM   #8
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
I'm not a real big fan of frames but you can try putting each script in it's own frame and use the
Code:
<meta http-equiv="refresh" content="60;URL=url.php">
method in each frame with each frame having a unique refresh rate. I do think the quickest that you can initiate a refresf is every second.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql-server4.1 and mod php-mysql conflig kernelvn *BSD 0 06-18-2005 11:52 AM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration