Re: cal_days_in_month()
| From: | David Robley | Date: | Sat, 09 Mar 2002 07:03:09 +0000 |
| Subject: | Re: cal_days_in_month() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87855@lists.php.net to get a copy of this message | ||
In article <20020308192936.13092.qmail@pb1.pair.com>, php@tag.nu says...
> Hi!
>
> I get an errormessage when trying to use cal_days_in_month(). "Fatal error:
> Call to undefined function: cal_days_in_month()"
>
> The server is runnig PHP 4.1.2, Apache 1.3.23 on some kind of Linux dist.
>
> When I run the same file on my laptop it works. The laptop is running PHP
> 4.1.1, Apache 1.3.20 on Windows 2000 Professional.
>
> Anyone got any idea?
>
> /Örjan
From the manual:
VI. Calendar functions
Introduction
The calendar extension presents a series of functions to simplify
converting between different calendar formats. The intermediary or
standard it is based on is the Julian Day Count. The Julian Day Count is
a count of days starting way earlier than any date most people would need
to track (somewhere around 4000bc). To convert between calendar systems,
you must first convert to Julian Day Count, then to the calendar system
of your choice. Julian Day Count is very different from the Julian
Calendar! For more information on calendar systems visit
http://genealogy.org/~scottlee/cal-overview.html.
Excerpts from this page
are included in these instructions, and are in quotes.
Installation
To get these functions to work, you have to compile PHP with --enable-
calendar.
So it would seem that your server doesn't have the necessary
functionality compiled into php.
--
David Robley
Temporary Kiwi!
Quod subigo farinam