开发者

PHP why is not "strtotime is not defined"

开发者 https://www.devze.com 2023-01-11 00:18 出处:网络
// why does this not work PHP in XAMMP stack // error: \"strtotime is not def开发者_StackOverflow中文版ined\"
// why does this not work PHP in XAMMP stack
// error: "strtotime is not def开发者_StackOverflow中文版ined"

$date2 = strtotime('2010-10-01');


According to http://us3.php.net/manual/en/calendar.installation.php,

To get these functions to work, you have to compile PHP with --enable-calendar.

The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions.

or on OS X:

sudo port install php5-calendar

Failing that, try looking for php5-calendar in your system's package manager.

0

精彩评论

暂无评论...
验证码 换一张
取 消