For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2008 > Re: PHP5.1.6: Class DateTime not found / undefined function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: PHP5.1.6: Class DateTime not found / undefined function
ZeldorBlat

2008-01-14, 7:01 pm

On Jan 14, 6:25 am, "Pugi!" <pugin...@gmail.com> wrote:
> I am using PHP 5.1.6 on RHEL5 server (is default installation of PHP).
> When using DateTime I get a fatal error: Class DateTime not found, the
> same with the function date_create: call to undefined function.
> According to the PHP manual DateTime and date_create are available
> from PHP version 5.1.0.
> The development machine uses PHP 5.2.1 (everything works fine), but
> for production I am stuck with PHP5.1.6.
> How do I solve this ?
>
> Pugi


There's a comment in the manual on date_create():

"date_create and other DateTime related functions are included by
default only in PHP versions equal and greater than 5.2.

In PHP 5.1.2 this functionality is marked to be experimental and has
to be enabled at compile time."
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com