» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2006, 01:01 PM
comet comet is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
comet is on a distinguished road
Wink countdown in real time!@!#@#

Hi there

Is there a way to have the php code count down real-time seconds? So say I want it to count from 60 seconds...is there a way to tell it count 60 seconds down to zero, using real time? ...not depedant on the server's time hopefully...

Many thanx -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-18-2006, 01:04 PM
savannah savannah is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
savannah is on a distinguished road
Default

No. PHP is client side and once parsed you can't do anything anymore. It's static in that regard. You'll need something client side like JavaScript -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-18-2006, 01:06 PM
tulip tulip is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tulip is on a distinguished road
Default

Quote:
Originally Posted by savannah
No. PHP is client side and once parsed you can't do anything anymore. It's static in that regard. You'll need something client side like JavaScript

extra text. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #4  
Old 08-18-2006, 01:09 PM
ROLAND ROLAND is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ROLAND is on a distinguished road
Default

but you can use Javascript and it's settimeout function as a clientside "looper" to display a countdown.

you can even integrate what the javascript counts down from by modifying the javascript variables with PHP -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #5  
Old 08-18-2006, 01:16 PM
yorke yorke is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yorke is on a distinguished road
Default

Or you could do it in Flash. Easier to control the look of the timer.

PHP could also be used to set a cookie and trigger the timer's start relative to the last time the visitor was cookied on your site. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
real time hosts?? Vgraph Web Hosting Industry 1 10-28-2006 03:06 AM
So any one knows the real scenario behind this. DANNIAL Google 5 09-01-2006 11:21 AM
Real Estate Investing! Lillie_Steins Advertise Programming Services 1 08-10-2006 05:41 PM
Looking for Real estate Domain crazy_ron Domain Names Wanted 2 07-21-2006 09:55 PM
real estate domain needed alex Domain Names Forum 5 12-20-2005 05:08 AM


All times are GMT. The time now is 05:41 PM.