Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Web Technology Web Design Tools Photoshop,Dreamweaver,Flash,Etc.Tutorials , References , Examples.

Web Technology Thread, PHP timer help... in Programming , WebDesign & Development; *This is the code bit i'm trying to use...* PHP: --------- $last_update=time(16:31:00); $timenow=time(16:30:00); $time_between_updates=60; if(($last_update+$time_between_updates)>$timenow){ ... This is the code ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=16919


Reply
LinkBack Thread Tools Display Modes
PHP timer help...
 
 
Senior Member

Reply With Quote
 
Join Date: Dec 2008
Posts: 18,122
14-01-2009, 05:30 PM
 
*This is the code bit i'm trying to use...* PHP: --------- $last_update=time(16:31:00); $timenow=time(16:30:00); $time_between_updates=60; if(($last_update+$time_between_updates)>$timenow){ ...

This is the code bit i'm trying to use...

PHP Code:
$last_update=time(16:31:00);
$timenow=time(16:30:00);
$time_between_updates=60;
if((
$last_update+$time_between_updates)>$timenow){
$updates=($timenow-$last_update)/$time_between_updates;
$next_update=$timenow+($updates*$time_between_updates);
$turns=$turns+10




But this is not working out, what i need is something that will add 10 turns to the users turn amount after every hour..


So i once again seek the collective wisdom of TSG
 
 
 
Reply

Web Technology Thread, PHP timer help... in Programming , WebDesign & Development; *This is the code bit i'm trying to use...* PHP: --------- $last_update=time(16:31:00); $timenow=time(16:30:00); $time_between_updates=60; if(($last_update+$time_between_updates)>$timenow){ ... This is the code ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=16919


Bookmarks

Tags
php, timer


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump