Php JDToGregorian在我的宿主服务器中返回0/0/0

Php JDToGregorian在我的宿主服务器中返回0/0/0,php,date,web-hosting,php-ini,Php,Date,Web Hosting,Php Ini,在php脚本中使用JDToGregorian函数时,我遇到了一些问题 <?php $jd=gregoriantojd(6,20,2007); echo jdtogregorian($jd); ?> 返回始终在我的本地apache中返回:6/20/2007 但不幸的是,在我的远程托管(1和1)中,它总是返回:0/0/0 请问我如何解决这个问题 您确定已安装日历扩展吗?使用--enable calendar编译PHP是的,当我在ssh中键入命令“PHP-m”时,模块日历就出现了。除

在php脚本中使用JDToGregorian函数时,我遇到了一些问题

<?php $jd=gregoriantojd(6,20,2007); echo jdtogregorian($jd); ?>

返回始终在我的本地apache中返回:6/20/2007 但不幸的是,在我的远程托管(1和1)中,它总是返回:0/0/0


请问我如何解决这个问题

您确定已安装日历扩展吗?使用
--enable calendar
编译PHP是的,当我在ssh中键入命令“PHP-m”时,模块日历就出现了。除了在php脚本的顶部添加这个函数(例如:include“jdtogregorian.php”)之外,我是否可以添加一些include(比如jquery include)