Site Age

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Site Age

    any1 can post the code to view the site age ?

    tnks ;)
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    #2
    site age? the ****?
    anyways this will do simple script i use
    Code:
    <?php
    ?>
    
    <html>
    <head>
    <title><?php echo $SERVER_NAME; ?> - Server Information</title>
    <STYLE type=text/css>
    BODY { FONT-SIZE: 8Pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
    </STYLE>
    </head>
    <body>
    <pre>
    [b]System Uptime:[/b]
    <?php system("uptime"); ?>
    
    [b]Server Info:[/b]
    <?php system("uname -a"); ?>
    
    
    [b]Memory Usage (MB):[/b]
    <?php system("free -m"); ?>
    
    
    [b]Disk Usage:[/b]
    <?php system("df -h"); ?>
    
    
    [b]CPU Info:[/b]
    <?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
    </pre>
    
    
    
    
    
    </body>
    </html>
    upload as whateverfilename.php

    demo -- http://lavalair.net/info.php

    Comment


      #3
      site age? the ****? it&#39;s site uptime and its this
      [code=]
      Uptime: <?=`uptime;`?>[/code][/b]
      I like at methos script site age.:

      Site Online: 1 Year, 155 Days


      this...
      if like my post click:

      http://coding-talk.com/images/totall...ost_thanks.gif

      Comment


        #4
        if its in methos script why dont you download methos script and copy and paste it lol

        Comment


          #5
          here:

          Code:
              $siteage = mysql_fetch_array(mysql_query("SELECT value  FROM ibwf_settings WHERE id=&#39;9&#39;"));
              $sage = (time() - $timeadjust)-$siteage[0];
              $stage = ceil($sage/(24*60*60));
              echo "Site Age: [b]$stage Days[/b]
          
          ";
          methos is my buddy ;)
          if like my post click:

          http://coding-talk.com/images/totall...ost_thanks.gif

          Comment


            #6
            maybe add something like this in there aswell

            $syear = $stage / 365;
            if($syear<1){
            echo "Site Age: $stage Days

            ";
            }else if($syear=="1"){
            echo "Site Age: $syear year $stage Days

            ";
            }else{
            echo "Site Age: $syear years $stage Days

            ";
            }

            then again might need round() lol

            Comment


              #7
              site age? the ****?
              anyways this will do simple script i use
              Code:
              <?php
              ?>
              
              <html>
              <head>
              <title><?php echo $SERVER_NAME; ?> - Server Information</title>
              <STYLE type=text/css>
              BODY { FONT-SIZE: 8Pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
              </STYLE>
              </head>
              <body>
              <pre>
              [b]System Uptime:[/b]
              <?php system("uptime"); ?>
              
              [b]Server Info:[/b]
              <?php system("uname -a"); ?>
              [b]Memory Usage (MB):[/b]
              <?php system("free -m"); ?>
              [b]Disk Usage:[/b]
              <?php system("df -h"); ?>
              [b]CPU Info:[/b]
              <?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
              </pre>
              
              
              
              
              
              </body>
              </html>
              upload as whateverfilename.php

              demo -- http://lavalair.net/info.php[/b]
              Thanks Amy
              think a code there was just what i was needing for something else

              Comment


                #8
                at my ibwf_setting not have the:

                INSERT INTO `ibwf_settings` VALUES (9, &#39;siteage&#39;, &#39;1175672936&#39;);

                how I can add at my old sql only this ???

                if like my post click:

                http://coding-talk.com/images/totall...ost_thanks.gif

                Comment


                  #9
                  exactly the way u have wrote it ????????????????????????????????????????? lol wtf?????????????????????

                  Comment


                    #10
                    What is the sql for this code?

                    Comment


                      #11
                      What is the sql for this code?

                      Comment


                        #12
                        what SQL ?? for what ??
                        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                        Comment


                          #13
                          its allready posted
                          INSERT INTO `ibwf_settings` VALUES (9, &#39;siteage&#39;, &#39;ur no.&#39;);
                          in ibwf_settings
                          Hate romains that take codes from here and tell to all that they had made that

                          Comment


                            #14
                            dont know why you need to select site age from database

                            not unless your planning to make a script that your going to release

                            or you are going to use it on multiple pages ...... which is unlikely

                            Comment


                              #15
                              INSERT INTO `ibwf_settings` VALUES (9, &#39;siteage&#39;, &#39;ur no.&#39;);
                              in ibwf_settings[/b]
                              i cant get it bro like this? "siteage , char or ?? 9 not null default 0" and what is "ur no."??

                              Comment

                              Working...
                              X