要使用本类函数,需要在编译 PHP 时加上 --enable-calendar 。
PHP 的 Windows 版本已内建对此扩展的支持。不需要载入额外的扩展来使用这些函数。
CoderUA at example dot com (2011-12-04 14:55:31)
FreeBSD Installation for PHP5:
Installation from packages:
pkg_add php5-calendar
Installation from ports:
cd /usr/ports/misc/php5-calendar && make install clean
Then to enable this module, add the following to php.ini (usually in /usr/local/etc/php/extensions.ini)
extension=calendar.so
Phil (2010-04-02 06:38:35)
For Gentoo users:
> USE="calendar" emerge -av php
Yes, remerging is necessary
tricky at cix dot co dot uk (2008-12-20 04:22:17)
NetBSD Installation for PHP5:
pkg_add php5-calendar
Then to enable this module, add the following to php.ini (usually in /usr/pkg/etc/php.ini)
extension=calendar.so