Page 1 of 1

Calendar functions not working on PHP 4.1.2

Posted: Fri Oct 18, 2002 6:34 am
by dilettante
Hi,
I'm having trouble getting some MCAL function to work, whenever i use them I get an error message :

Fatal error: Call to undefined function: mcal_day_of_year() in /home/sites/numweek.php on line 24

here's the code

<body>

<h3>Number of day in year</h3>
<h4>Date</h4>
<form action="#">
<input type="text" size="3" name="j"/>&nbsp;/&nbsp;
<input type="text" size="3" name="m"/>&nbsp;/&nbsp;
<input type="text" size="3" name="a"/>
<br/><input type="submit" value="Calculate"/>
</form>

<?
if (($j != 0) && ($m != 0) && ($a != 0))
print("<p>Résultat :&nbsp;".mcal_day_of_year($a,$m,$j));
?>

</body>

Posted: Fri Oct 18, 2002 6:40 am
by m0by
your gonna have to install the mcal library before the extensions can work.
http://www.php.net/manual/en/ref.mcal.php