shai1 Posted January 19, 2009 Share Posted January 19, 2009 I'm trying to do some date math and wanted to use the gregoriantojd function. In the PHP manual, it lists this function as being available for PHP4, PHP 5. I'm running PHP 5.2.5 and I get an error message when i call this function. Fatal error: Call to undefined function GregorianToJD(). Any thoughts on what I might be doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/141527-solved-undefined-function-gregoriantojdmonth-day-year/ Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 You don't have the calandar extension installed / configured. See here. Quote Link to comment https://forums.phpfreaks.com/topic/141527-solved-undefined-function-gregoriantojdmonth-day-year/#findComment-740801 Share on other sites More sharing options...
shai1 Posted January 27, 2009 Author Share Posted January 27, 2009 thorpe...I think you've nailed my problem. I looked at the link you supplied, but I'm not sure how I recompile the install with that option enabled. I'm working on OS X and was using the built in install of PHP. Do I need to download the binaries and reinstall it? Quote Link to comment https://forums.phpfreaks.com/topic/141527-solved-undefined-function-gregoriantojdmonth-day-year/#findComment-748009 Share on other sites More sharing options...
trq Posted January 27, 2009 Share Posted January 27, 2009 I'm working on OS X and was using the built in install of PHP. Do I need to download the binaries and reinstall it? If you can find binaries with that extension built in by all meens. I'm not an OS X user sorry, but I would suggest you may need to build from source. Quote Link to comment https://forums.phpfreaks.com/topic/141527-solved-undefined-function-gregoriantojdmonth-day-year/#findComment-748018 Share on other sites More sharing options...
shai1 Posted January 27, 2009 Author Share Posted January 27, 2009 I appreciate the help with this. I'll have to do some more research on updating my install. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/141527-solved-undefined-function-gregoriantojdmonth-day-year/#findComment-748048 Share on other sites More sharing options...
shai1 Posted January 28, 2009 Author Share Posted January 28, 2009 I found this tutorial on Apple's website and it's been very helpful. Thought I'd share it for other users... http://developer.apple.com/internet/opensource/php.html Thanks again for the help! Quote Link to comment https://forums.phpfreaks.com/topic/141527-solved-undefined-function-gregoriantojdmonth-day-year/#findComment-748771 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.