# PHP and Calendar Functions

**URL:** <https://forums.suse.com/t/php-and-calendar-functions/26588>\
**Category:** SLES Configure-Administer\
**Created:** [January 21, 2015, 10:27pm UTC](https://forums.suse.com/t/php-and-calendar-functions/26588 "2015-01-21T22:27:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [January 21, 2015, 10:27pm UTC](https://forums.suse.com/t/php-and-calendar-functions/26588/1 "2015-01-21T22:27:33Z")

</div>

Wanting to implement a PHP class that requires PHP compiled with  
Calendar Functions. I am running SLES 11 SP3 with PHP 5.3.17. When I  
try to use this class I get: “PHP Fatal error: Call to undefined  
function cal\_days\_in\_month()…” I’ve always just used the provided  
version of PHP and never had to compile it. Any suggestions on how to  
get this working?

Ken

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [January 21, 2015, 10:37pm UTC](https://forums.suse.com/t/php-and-calendar-functions/26588/2 "2015-01-21T22:37:28Z")

</div>

On Wed, 21 Jan 2015 20:27:33 GMT, KeN Etter  
[ketter@no-mx.forums.novell.com](mailto:ketter@no-mx.forums.novell.com) wrote:  
[color=blue]

> Wanting to implement a PHP class that requires PHP compiled with  
> Calendar Functions. I am running SLES 11 SP3 with PHP 5.3.17. When I  
> try to use this class I get: “PHP Fatal error: Call to undefined  
> function cal\_days\_in\_month()…” I’ve always just used the provided  
> version of PHP and never had to compile it. Any suggestions on how to  
> get this working?
> 
> Ken[/color]

Nevermind. After posting this I found php53-calendar. A quick zypper  
and everything is working now.

Ken

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [January 22, 2015, 1:23am UTC](https://forums.suse.com/t/php-and-calendar-functions/26588/3 "2015-01-22T01:23:14Z")

</div>

Great to hear! Thank-you for posting back your results, as they will  
likely help others.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
