Run PHP script every 10 seconds

Reply

Join Date: Apr 2007
Posts: 136
Reputation: dr4g is an unknown quantity at this point 
Solved Threads: 5
dr4g's Avatar
dr4g dr4g is offline Offline
Junior Poster

Re: Run PHP script every 10 seconds

 
0
  #11
May 11th, 2007
Right. cool.
So, my method would work continuously,
without someone viewing the page.

Yours would only work if someone had the script open.

So it's up to you maninweb. Either will work, it just depends on how you want to do it.
Last edited by dr4g; May 11th, 2007 at 2:22 pm.
GardCMS :: Open Source CMS :: Gardcms.org
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 11
Reputation: maninweb is an unknown quantity at this point 
Solved Threads: 0
maninweb maninweb is offline Offline
Newbie Poster

Re: Run PHP script every 10 seconds

 
0
  #12
May 12th, 2007
Hi...

well I will try out all ideas. Logically it must be possible to open
a browser on the server (Linux) and run the script all ten seconds
or just once on specified time. As I'm writing now the first call of
the script can be done by a cronjob. Hope I'm right.

Greetings
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2
Reputation: jmag is an unknown quantity at this point 
Solved Threads: 0
jmag jmag is offline Offline
Newbie Poster

Re: Run PHP script every 10 seconds

 
0
  #13
Nov 7th, 2007
I am using a script for banner rotation that I want to refresh every 10 seconds. I used this

[php]header('refresh:10; url=filename.php');[/php]

in the file but in the first interval the browser leaves the website and shows just the refreshing banners in a page. How can I refresh and remain in the site?

Thank you
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2
Reputation: jmag is an unknown quantity at this point 
Solved Threads: 0
jmag jmag is offline Offline
Newbie Poster

Re: Run PHP script every 10 seconds

 
0
  #14
Nov 7th, 2007
Actually I got it done with a frame.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC