A note that might save some people some time:
This note on this page about DateTime object not being available unless you have PHP 5.2.0 or greater ONLY applies to SOME of the functions listed in the function list section of this manual.
The DateTime is a new OO-based approach to date manipulation, but the old methods such as strtotime() and date() have been there for ages and still get the job done.
To new users a "This not available until 5.2.0" note on the "Installation" page for this section seems to imply that ALL the functionality of this section is not available until 5.2.0.
Maybe we should put a note on each of the "new" functionality pages that says. "This is new as of 5.2.0, and effectively replaces X and Y legacy functions". Just a thought.
インストール手順
PHP コアに含まれるため、 追加のインストール無しで使用できます。
注意: 最新のタイムゾーンデータベースの取得
最新バージョンのタイムゾーンデータベースは、PECL の » timezonedb からインストールできます。Windows ユーザ向けには、コンパイル済みの DLL » php_timezonedb.dll が PECL4Win サイトからダウンロードできます。
注意: PHP 5.1.x における実験的な DateTime サポート
DateTime クラス (とそれに関連する関数) がデフォルトで使用できるようになったのは PHP 5.2.0 からですが、 PHP 5.1.x でも実験的な DateTime サポートを追加することができます。 そのためには、configure/コンパイルの前に CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1 フラグを使用します。
インストール手順
dave2008 at buchananville dot com
21-Jul-2008 09:40
21-Jul-2008 09:40
