Calendar functions not working on PHP 4.1.2

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dilettante
Forum Newbie
Posts: 1
Joined: Fri Oct 18, 2002 6:34 am

Calendar functions not working on PHP 4.1.2

Post 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>
User avatar
m0by
Forum Newbie
Posts: 4
Joined: Fri Oct 18, 2002 2:14 am
Location: Earth

Post by m0by »

your gonna have to install the mcal library before the extensions can work.
http://www.php.net/manual/en/ref.mcal.php
Post Reply