The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Age count
Author Message
Kanibal
Master
**

Posts: 258
Likes Given: 7
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: Age count
(11-10-2016 08:15 AM)Leonidas Wrote:  How does that count? By seconds, hours, days?
Seconds.

Here is PHP function that shows server uptime. MySQL value $row['timeup'] = <serv.timeup>. Rewrite it and be happy
Code:
<?php
    $uptime = $row['timeup'];
    $days = floor($uptime / (60*60*24));
    $uptime = $uptime % (60*60*24);
    $hours = floor($uptime / (60*60));
    $uptime = $uptime % (60*60);
    $minutes = floor($uptime / 60);
    echo $days . ' Days ' . $hours . ' Hours ' . $minutes . ' Minutes';
    ?>

Grandmaster Localhost Admin
11-10-2016 08:23 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Age count - Leonidas - 11-10-2016, 07:34 AM
RE: Age count - Kanibal - 11-10-2016, 07:45 AM
RE: Age count - Leonidas - 11-10-2016, 08:15 AM
RE: Age count - Kanibal - 11-10-2016 08:23 AM
RE: Age count - Leonidas - 11-10-2016, 08:29 AM
RE: Age count - Kanibal - 11-10-2016, 08:48 AM
RE: Age count - Leonidas - 11-10-2016, 09:05 AM
RE: Age count - Kanibal - 11-10-2016, 09:12 AM
RE: Age count - Leonidas - 11-10-2016, 03:39 PM
RE: Age count - Kanibal - 11-10-2016, 08:59 PM
RE: Age count - Leonidas - 11-11-2016, 12:10 PM
RE: Age count - Ben - 11-14-2016, 06:22 AM
RE: Age count - Leonidas - 11-14-2016, 08:33 AM
RE: Age count - Ben - 11-14-2016, 08:58 AM
RE: Age count - Coruja - 11-18-2016, 02:53 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)