Page 1 of 1

FROM_UNIXTIME($phpdate);

Posted: Sat Oct 31, 2009 7:20 am
by kleelof
Hello,

I tried to use this :

$date = FROM_UNIXTIME($phpdate);

ANd I was told that FROM_UNIXTIME() is an 'unidentified function'.

Any ideas why this might be? I've used it before with no problems.

I am using PHP 5.3.0.

take care,
lee

Re: FROM_UNIXTIME($phpdate);

Posted: Sat Oct 31, 2009 11:39 am
by Mirge
kleelof wrote:Hello,

I tried to use this :

$date = FROM_UNIXTIME($phpdate);

ANd I was told that FROM_UNIXTIME() is an 'unidentified function'.

Any ideas why this might be? I've used it before with no problems.

I am using PHP 5.3.0.

take care,
lee
FROM_UNIXTIME() is a MySQL function, not PHP.

For converting a UNIX timestamp into a human-readable date, see http://www.php.net/date/