Login   Register  
PHP Classes
elePHPant
Icontem

Dependencies?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Multi-format countdown  >  All threads  >  Dependencies?  >  (Un) Subscribe thread alerts  
Subject:Dependencies?
Summary:This seems to be short of a library...
Messages:3
Author:Michael Schulz
Date:2011-05-02 11:47:45
Update:2011-05-02 12:37:16
 

  1. Dependencies?   Reply  
Picture of Michael Schulz
Michael Schulz
2011-05-02 11:47:45
Fatal error: Call to undefined function cal_days_in_month() in countdown.php on line 50

  2. Re: Dependencies?   Reply  
Picture of Arturs Sosins
Arturs Sosins
2011-05-02 12:28:10 - In reply to message 1 from Michael Schulz
cal_days_in_month is a built in php function
http://php.net/manual/en/function.cal-days-in-month.php

Installation

To get these functions to work, you have to compile PHP with --enable-calendar .

The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions.

From http://www.php.net/manual/en/calendar.installation.php


As windows user, I didn't have any problems with that, but it is nice you pointed that out. It's possible to replace cal_days_in_month function with date("t") - equivalent functionality.
I'll update class ASAP.

  3. Re: Dependencies?   Reply  
Picture of Arturs Sosins
Arturs Sosins
2011-05-02 12:37:16 - In reply to message 1 from Michael Schulz
Updated class source