PHP PEAR based Calendar

March 22nd, 2010

Calendar is a good program to start with. I know there are many, but it is always good to start with one small program such as calendar

The Features we want.

1. PHP Calendar with innumerous years i.e. countless lets start computer start date to 2008 and to future and

more…………….

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
if ( !@include 'Calendar/Calendar.php' ) {
define('CALENDAR_ROOT','../../');
}

require_once CALENDAR_ROOT.'Month/Weeks.php';
require_once CALENDAR_ROOT.'Day.php';

if (!isset($_GET['y'])) $_GET['y'] = date('Y');
if (!isset($_GET['m'])) $_GET['m'] = date('m');
if (!isset($_GET['d'])) $_GET['d'] = date('d');

$month = new Calendar_Month_Weeks($_GET['y'],$_GET['m']);

$current_month_year =  date('F Y',$month->getTimeStamp());
$nextyear = intval(date('Y',$month->getTimeStamp()))+1;
$prevyear = intval(date('Y',$month->getTimeStamp()))-1;
// Create an array of days which are "selected"
// Used for Week::build() below

$selectedDays = array (
new Calendar_Day($_GET['y'],$_GET['m'],$_GET['d']),
new Calendar_Day($_GET['y'],12,25),
);

// Instruct month to build Week objects
$month->build();

<code>

  • Blogger Post
  • Delicious
  • Digg
  • DZone
  • Facebook
  • Google Buzz
  • Google Bookmarks
  • Google Reader
  • LiveJournal
  • LinkedIn
  • Orkut
  • Ping
  • StumbleUpon
  • Reddit
  • Twitter
  • Technorati Favorites
  • WordPress
  • Share/Bookmark

Welcome to Abyaas

March 21st, 2010

Abyaas a word derived from sanskrit(an old language) which means practice.

After working as a PHP developer from a longtime, I finally got a little bit of time to make my own web site.

What actually I intend to do on this is, something that I like  to do at any point of time, but mostly related to my profession. What I’m currently thinking is to write my little, php scripts developed by me or talk or write anything related to LAMP Technologies. I’m not an expert, but I’m  good enough to write PHP applications or even design an PHP application.  Have comments for us? Comments on my code are very openly accepted.

  • Blogger Post
  • Delicious
  • Digg
  • DZone
  • Facebook
  • Google Buzz
  • Google Bookmarks
  • Google Reader
  • LiveJournal
  • LinkedIn
  • Orkut
  • Ping
  • StumbleUpon
  • Reddit
  • Twitter
  • Technorati Favorites
  • WordPress
  • Share/Bookmark
 
3 visitors online now
3 guests, 0 members
Max visitors today: 6 at 06:44 pm UTC
This month: 6 at 09-08-2010 06:44 pm UTC
This year: 24 at 05-13-2010 01:03 am UTC
All time: 24 at 05-13-2010 01:03 am UTC