|
Posted by ZeldorBlat on 01/14/08 18:22
On Jan 14, 10:40 am, "Pugi!" <pugin...@gmail.com> wrote:
> On 14 jan, 15:27, ZeldorBlat <zeldorb...@gmail.com> wrote:
>
>
>
> > 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."
>
> Yes, I saw that today on the online manual, but I use a downloaded
> manual (chm) and there it says PHP >= 5.1.0
It is in PHP >= 5.1.0 -- but you need to explicitly enable it when you
compile PHP versions < 5.2.
Navigation:
[Reply to this message]
|