Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to calcualte loin and logout time?
Old 04-22-2010, 07:46 AM how to calcualte loin and logout time?
Skilled Talker

Posts: 59
Name: elenabush
Trades: 0
Hi All,

please let us know how to calculate login and logout time(date:hours:minutes:second) in php pages, please give me coding its, we would be appreciated your kind of help.
__________________

Please login or register to view this content. Registration is FREE
#
Please login or register to view this content. Registration is FREE
#
Please login or register to view this content. Registration is FREE
elena1234 is offline
Reply With Quote
View Public Profile Visit elena1234's homepage!
 
 
Register now for full access!
Old 04-22-2010, 09:17 AM Re: how to calcualte loin and logout time?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
login time would be time() and so would the logout time at the point where they logout.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-25-2010, 04:31 AM Re: how to calcualte loin and logout time?
Junior Talker

Posts: 1
Trades: 0
PHP Code:
<?php $dt=date("d:H:i:s",time());?>
Use this code to get date.
__________________

Please login or register to view this content. Registration is FREE
susen is offline
Reply With Quote
View Public Profile
 
Old 04-27-2010, 07:36 AM Re: how to calcualte loin and logout time?
Super Talker

Posts: 139
Name: John Davis
Trades: 0
Quote:
Originally Posted by susen View Post
PHP Code:
<?php $dt=date("d:H:i:s",time());?>
Use this code to get date.
The second parameter of date() is optional and is equal to time() by default.
So, in your example you can use just :
PHP Code:
<?php $dt=date("d:H:i:s");?>
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Reply     « Reply to how to calcualte loin and logout time?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21040 seconds with 12 queries