Archive for the ‘PHP’ Category

Tutorials July 2010

Tutorials July 2010

All the latest jquery,html5,css3 tutorials Showing Off bit.ly Clicks of Your Posts With jQuery By Mike More, July 29th, 2010 Site: AEXT Thumbnails Navigation Gallery with jQuery By Mary Lou, July 29th, 2010 Site: Codrops Building a custom HTML5 video player with CSS3 and jQuery By Cristian-Ionut Colceriu, July 28th, 2010 Site: Dev Opera Start [...]

PHP calculate age from date of birth

PHP calculate age from date of birth

Code added to this post will calculate date difference in days, months, years format. So using this code you can calculate age by sending birth date as parameter. Or you can calculate difference between today’s date and any date in past.

PHP Add One Month, one day or one Year to todays date

PHP Add One Month, one day or one Year to todays date

This example shows you how to add one day, one month or one year to todays date using PHP Date Functions. for more information refer PHP.net <?php //PHP Example code to add one day,one month or one year to todays date $todayDate = date("Y-m-d");// current date echo "Today: ".$todayDate."<br>"; //Add one day to today $dateOneDayAdded [...]

Create Image using PHP

Create Image using PHP

PHP have mosts of functions available to create a image on the fly. You can use these functions to create a captcha image or a add banner on the fly. <?php $new_image = imagecreate( 400, 200 ); $apply_background = imagecolorallocate( $my_img, 0, 0, 255 ); $text_colour = imagecolorallocate( $new_image, 255, 255, 0 ); $line_colour = [...]