What is PhpDig?
PhpDig is a PHP MySQL based
Web Spider & Search Engine.



mcal_event_set_recur_monthly_wday — Set the stream's global event to recur monthly by week


void mcal_event_set_recur_monthly_wday(MCALconnection, year, month, day, interval);
int MCALconnection: An open MCAL connection
int year: The year the recurrence ends
int month: The month the recurrence ends
int day: The day the recurrence ends
int interval: The event will occur every interval months


FALSE on error, otherwise NULL


mcal_event_set_recur_monthly_wday() sets the stream's global event to recur every interval months on the same day of the week. If the event starts on the third Tuesday in March, and interval is 1, then it will recur every March on the third Tuesday. If the event starts on the fifth Monday of a month, it will not recur in months that don't have a fifth Monday.


PHP 3 since 3.0.13, PHP 4 since 4.0b4


Example 714. Daylight savings time

$calendar = "{/mstore}<mycalendar>";
$MCALconnection = mcal_open($calendar, "username", "password");

// Set the event to start on the first Sunday in April - April 1st, in 2001.
$start_year = 2001;
$start_month = MCAL_APRIL;
$start_day = 1;
mcal_event_set_start($MCALconnection, $start_year, $start_month, $start_day);

// Set the event to recur every 12 months, with no end date.
// 9999-12-31 is the largest date represented by libmcal, and
// can be used whenever you want an event to effectively not have
// an end date.
$recur_end_year = 9999;
$recur_end_month = MCAL_DECEMBER;
$recur_end_day = 31;
$interval = 12;

// This event will always recur on the day that Daylight Saving Time
// starts in the United States: the first Sunday in April.
mcal_event_set_recur_monthly_wday($MCALconnection, $recur_end_year,
                                  $recur_end_month, $recur_end_day,

PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing (Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch). This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at The authors of this book have elected not to choose any options under the OPL. This online book was obtained from and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4 for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All persons and entities shall have neither liability nor responsibility to any person or entity with respect to any loss or damage arising from the information contained in this book.

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.