Jump to content

[SOLVED] Undefined function gregoriantojd($month, $day, $year)


shai1

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.