Archive for January, 2009
my article in google translate
In : google translate, install, mysql, xampp, Posted by wahyupramusinto on Jan.01, 2009
I just opened my website is a long time, and in fact one of the articles there have been translated from English into English. I already have other people who use google translate to translate the page. Original title is cara instalasi xampp
And this is a version of the translation in the English language
XAMPP is an installation package for PHP, Apache and MySQL. By using XAMPP, we do not need to be bothered to install the software that third separately.XAMPP can be downloaded at http://www.apachefriends.org/en/index.html.Here is how to install XAMPP.
you can view the complete article in english here
how to get number of days in the month with php
In : calendar, coding, date, function, month, parameter, php, Posted by wahyupramusinto on Jan.01, 2009
if you want to know number of days in the month with php, you can call function cal_days_in_month()
this function returns the number of days in a given month, based on the calendar, month, and year that you specify
the format of this function is
Cal_days_in_month (calendar, Month, year)
This function have three parameters,
- calendar, you can fill this parameter with CAL_GREGORIAN
- month, you can fill this parameter with month (1 – 12)
- year, you can fiil this parameter with 4 digits of year (2008)
example :
$days = cal_days_in_month(CAL_GREGORIAN, 1, 2009) ;
echo “In January 2009 there were $days days”;
?>
that example will display
In january 2009 there were 31 days