User
Pass
2FA
 
 

record time ...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message875
Tr3z3gu3T

[Mentally Stable]



Status: Offline
(since 12-06-2019 13:16)
Joined: 29 Sep 2006
Posts: 493, Topics: 71
Location: Romania

Reputation: 481.6
Votes: 14

 
Post Posted: 10-05-2010, 19:31:54 | Translate post to: ... (Click for more languages)

iap stiu intrebare de n00b da nu imi iese -

ma loghez in 1.php cu un id si o parola... ajung in 2.php parcurg 3.php + 4.php si in final ajung in 5.php unde vreau sa afisez cand timp a decurs de cand m-am logat pana am ajuns in 5 php.

ce variante am -

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
georgegs

[Mentally Stable]



Status: Offline
(since 05-11-2013 10:34)
Joined: 29 Jan 2010
Posts: 47, Topics: 6
Location: Bucuresti

Reputation: 32.1
Votes: 5

   
Post Posted: 04-06-2010, 19:32:01 | Translate post to: ... (Click for more languages)

Pai ai avea o metoda ... si acea cu un script php ( trebuie scris manual / nu sunt sigur ca gasesti free) care sa iti spuna cat timp ai stat LOGAT ....

Mereu unde ai nevoie:) si chiar cand nu ai nevoie:(
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Tr3z3gu3T

[Mentally Stable]



Status: Offline
(since 12-06-2019 13:16)
Joined: 29 Sep 2006
Posts: 493, Topics: 71
Location: Romania

Reputation: 481.6
Votes: 14

 
Post Posted: 07-06-2010, 00:08:38 | Translate post to: ... (Click for more languages)

rezolvat... ty
1.php
Code:
<?php $time = time(); ?>


5.php

Code:
<?php

                  //Set a fixed point in time

                  $time1 = base64_decode($_GET['i']);

                  //Get current Unix time stamp

                  $time2 = time();

                  //Calculate the difference in seconds

                  $difference = $time2 - $time1;

                  $diffSeconds = $difference;

                  //Calculate how many days are within $difference

                  $days = intval($difference / 86400);

                  //Keep the remainder

                  $difference = $difference % 86400;

                  //Calculate how many hours are within $difference

                  $hours = intval($difference / 3600);

                  //Keep the remainder

                  $difference = $difference % 3600;

                  //Calculate how many minutes are within $difference

                  $minutes = intval($difference / 60);

                  //Keep the remainder

                  $difference = $difference % 60;

                  //Calculate how many seconds are within $difference

                  $seconds = intval($difference);

                  //Output:

                  echo "Time1: ".strftime("Time: %H:%M:%S Date %d %B %Y", $time1);

                  echo "<br><br>";

                  echo "Time2: ".strftime("Time: %H:%M:%S Date %d %B %Y", $time2);

                  echo "<br><br>";

                  echo "Difference in seconds: ".$diffSeconds;

                  echo "<br><br>";

                  echo "Difference in Days: ".$days." Hours: ".$hours." Minutes: ".$minutes." Seconds: ".$seconds;

                  ?>



in paginile de mijloc doar preluam variabila si o dadeam mai departe

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 29-04-2024, 19:35:55
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x