FROM_UNIXTIME($phpdate);

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kleelof
Forum Newbie
Posts: 1
Joined: Sat Oct 31, 2009 7:16 am

FROM_UNIXTIME($phpdate);

Post 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
User avatar
Mirge
Forum Contributor
Posts: 298
Joined: Thu Sep 03, 2009 11:39 pm

Re: FROM_UNIXTIME($phpdate);

Post 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/
Post Reply