Tag Archives: Functions

cal_info

It returns information about a particular calendar

Example

<?php
echo “<pre>”;
$calInfo = cal_info(CAL_GREGORIAN);
print_r($calInfo);
?>

Output

Array
(
[months] => Array
(
[1] => January
[2] => February
[3] => March
[4] => April
[5] => May
[6] => June
[7] => July
[8] => August
[9] => September
[10] => October
[11] => November
[12] => December
)

[abbrevmonths] => Array
(
[1] => Jan
[2] => Feb
[3] => Mar
[4] => Apr
[5] => May
[6] => Jun
[7] => Jul
[8] => Aug
[9] => Sep
[10] => Oct
[11] => Nov
[12] => Dec
)

[maxdaysinmonth] => 31
[calname] => Gregorian
[calsymbol] => CAL_GREGORIAN
)

  • 0 or CAL_GREGORIAN – Gregorian Calendar
  • 1 or CAL_JULIAN – Julian Calendar
  • 2 or CAL_JEWISH – Jewish Calendar
  • 3 or CAL_FRENCH – French Revolutionary Calendar

cal_from_jd

It converts from Julian Day Count to a supported calendar

Example

<?php
echo “<pre>”;
$day = unixtojd(mktime(0, 0, 0, 5, 17, 1984));
print_r(cal_from_jd($day, CAL_GREGORIAN));
?>

Output

Array
(
[date] => 5/17/1984
[month] => 5
[day] => 17
[year] => 1984
[dow] => 4
[abbrevdayname] => Thu
[dayname] => Thursday
[abbrevmonth] => May
[monthname] => May
)

ezmlm

ezmlm is a software package for managing electronic mailing lists by Daniel J. Bernstein. It is similar to GNU Mailman and Majordomo but only works with the qmail mail transfer agent. It is released into the public domain.The latest version, 0.53, came out in 1997. The ezmlm-idx patches add modern features like MIME handling.

ezmlm provides all of the common electronic mailing list functionality: moderated lists, automated subscription and unsubscription, and digest creation. ezmlm takes advantage of the features of qmail to enable ordinary users to create and to manage mailing lists, without need for superuser privileges .

mail

It can be used to send email

Example

<?php
$headers    = “MIME-Version: 1.0n”;
$headers   .= “Content-type: text/html; charset=iso-8859-1n”;
$headers   .= “From: from@phpcodez.comn”;
$headers   .= “Return-Path: info@phpcodez.comn”;
$headers   .= “Return-Receipt-To: info@phpcodez.comn”;
@mail(“info@phpcodez.com”,”Test”, “Test Mail”, $headers);
?>