English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

and also php code to display time during login..
please help me...

2007-02-20 14:16:53 · 6 answers · asked by firza 1 in Computers & Internet Programming & Design

it means that it shows the time when user login..and show how long that user login.

2007-02-20 15:17:09 · update #1

6 answers



Outputs RFC 2822 formatted time for the server's timestamp.

http://us2.php.net/manual/en/function.date.php

2007-02-20 15:31:32 · answer #1 · answered by Anonymous · 0 0

Hey mate.

To echo current time use the following code:

echo date("H:i:s");

You can refer to the link I posted as my source for more details & examples.

Good luck!

2007-02-20 14:32:46 · answer #2 · answered by d2kbnz 1 · 0 0

I think it will be better if you try it your self. Just read the following link

http://www.php.net/date

and learn how different parameters of date function can be used to perform date/time related tasks.
Sometime, you may also need to work using mktime in association with date function to perform such tasks.

2007-02-21 17:24:33 · answer #3 · answered by Atif Majid 3 · 0 0

echo date("l, F d, Y h:i" ,time());
?>

time during login?

2007-02-20 14:22:06 · answer #4 · answered by Zlavzilla 3 · 0 0

... your login to determine user has login successfully...

if ($user_login) {
if ( !isset($__COOKIES['login']) ) {
$__COOKIES['login'] = time();
}
}

if ( isset($__COOKIES['login']) ) {
echo date('U', $__COOKIES['login']);
$how_long = time() - $__COOKIES['login'];
echo $how_long; // seconds format
}

?>

2007-02-20 19:35:18 · answer #5 · answered by ajreal 2 · 0 0

confusing situation. browse into a search engine. that will can help!

2016-05-24 00:35:19 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers