|
Posted by ZeldorBlat on 01/14/08 14:27
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."
Navigation:
[Reply to this message]
|