[PHP] date() function and timestamps

2003-07-03 Thread Garrick Linn
Hello all,

I seem to be running into a problem where the date() function appears not 
to differentiate properly between unix timestamps.

For example, the code:

?php

$seconds = 1054278483;
echo $secondsbr;
echo date(d-m-Y H:m:s, $seconds);
echo brbr;
$seconds = ($seconds - 60);
echo $secondsbr;
echo date(d-m-Y H:m:s, $seconds);
echo brbr;
?

outputs

1054278483
30-05-2003 02:05:03
1054278423
30-05-2003 02:05:03
I would expect the second date() to output 30-05-2003 02:04:03 as the 
second timestamp is exactly 60 seconds behind the first, but I might be 
missing something.  I see the same behavior on two redhat linux machines 
running Apache 2.0.40 + PHP 4.2.2 and Apache 1.3.26 + PHP 4.3.2 
respectively.  Any ideas?

Thanks,

Garrick Linn



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Credit Card Validation

2002-09-07 Thread Garrick Linn

Check out http://www.analysisandsolutions.com/code/ccvs-ph.htm

At 05:03 PM 9/7/2002 -0400, Jeff Lewis wrote:
I know it's been posted here several times and I've looked through the 
archives but I just need something very simple for this. I have a form 
that already takes in user information but now before accepting the 
information, I'd like to pass the credit card information to a function 
and return true or false.

Is anyone using something like this that is simple?

Jeff



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php