Re: [PHP] convert 12:12:00 to seconds

2001-08-29 Thread monfort
Hello all, I'm working on an online membership system, for a pay-per-view website. I'm looking for a user authentication system that does the following: -implements 'members only' pages -process membership registration (backed by mysql) -online credit card processing(using authorize.net) -reocu

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread rm
maybe $time=12:12:00 $x=explode(":",$time); $sec=($x[0]*3600)+($x[1]*60)=$x[2]; rm --- nafiseh saberi <[EMAIL PROTECTED]> wrote: > > hi. > how do I covert convert 12:12:00 to seconds ? > I want to get time from system and covert it to > seconds to do > arithmetic work on it. > thanks

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread Andrey Hristov
Use gmmktime() or mktime() example : - Original Message - From: "nafiseh saberi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:30 PM Subject: [PHP] convert 12:12:00 to seconds > > hi. > how do I covert convert 12:12:00 to seconds ? > I want to get time

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread Chris Lambert
$seconds = explode(":", $time); $seconds = $seconds[0] * 3600 + $seconds[1] * 60 + $seconds[2]; Or use www.php.net/mktime /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: naf