Warning: include(../../../site/top.php) [function.include]: failed to open stream: No such file or directory in /home/sandyd/websites/www.sorn.net/web/projects/PHP_Calendar/index.php on line 7

Warning: include() [function.include]: Failed opening '../../../site/top.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/sandyd/websites/www.sorn.net/web/projects/PHP_Calendar/index.php on line 7

PHP_Calendar

[Download: 1.1kB]

A PHP script that generates a calendar which displays the current month as a normal physical calendar would and provides hyperlinks for previous, next and current months. Days are also hyperlinks so you can make it do things for each day if you like.

The coulours used in it are defined in an external style sheet which you can create so the colour match your web page design. Just look at the HTML produced by it to see what CSS classes to create.

This code is free (as in beer) so you can do what you like with it. it has no warranty so I'm not liable for it messing up anything. i use it on a daily basis so it seems to work well. It's not a necessity, but I'd be happy if you put a link to this page on your site if you use it :-)

Here is an example of it being included in a web page:


This Month
November 2008
montuewedthufrisatsun
0102
03040506070809
10111213141516
17181920212223
24252627282930
<< Previous MonthNext Month >>

This is NOT distributed under the GPL License - it is free for you to do WHATEVER YOU WANT with.

Here is an example of the meaning of "free" in the GPL sense:
When a program is given away or sold under the GNU General Public License (GPL), users are free to adapt it for their own needs (free as in speech), and to make as many copies as they want (free as in beer). The only thing they're not free to do is incorporate it into a proprietary, closed-source product: If you sell your own version of Linux, it must be licensed under the same GPL as the original.




Warning: include(../../../site/bot.php) [function.include]: failed to open stream: No such file or directory in /home/sandyd/websites/www.sorn.net/web/projects/PHP_Calendar/index.php on line 48

Warning: include() [function.include]: Failed opening '../../../site/bot.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/sandyd/websites/www.sorn.net/web/projects/PHP_Calendar/index.php on line 48