Thanks
Charlie -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Pete Sent: 22 November 2007 23:05 To: [email protected] Subject: Re: [php_mysql] New to dates in PHP In message <[EMAIL PROTECTED] org>, Charlie Markwick <[EMAIL PROTECTED]> writes >I want to get the current Unix time stamp. > >Fist I tried the example from the PHP site:- > >strtotime("now") >This kills the PHP and I end up with a blank page with absolutely no >HTML That works for me - did you use echo strtotime("now"); > >So the I tried:- > >strtotime(date("d/m/Y")) > >This produced a null result but didn't crash the page. I'm tearing >what's left of my hair out, can anyone advise me what I'm doing wrong? PHP is not British <G> echo strtotime(date("Y/m/d")) Of course, the two output different numbers, as the second has no time element.
