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?

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.