Category Archives: Downloads & Resources

CALCULATE THE NUMBER OF DAYS BETWEEN TWO DATES

Here’s a simple function that calculates the number of days between two dates. <?php //day’s seconds = 86400 function days_between($day_i,$month_i,$year_i,$day_f,$month_f,$year_f){ $days_in_between = (mktime(0,0,0,$month_f,$day_f,$year_f) – mktime(0,0,0,$month_i,$day_i,$year_i))/86400; return $days_in_between; } ?> //If we want to calculate the days between 21/8/2009 and 1/9/2009 then echo days_between(21,8,2009,1,9,2009); //would give us 11

SOLVING PHP MYSQL UTF-8 ISSUES

Heres a list of actions you should do in order to get PHP + MySQL working with UTF-8: 1. Database: CREATE DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ; or if the database was already created: ALTER DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci… Read More »

Free Distance Calculator ( Chrome Extension )

This extension easily calculates the distance between multiple parameters and show the respective map with directions. Enter parameters, get distance and search map. Easy GUI, search suggestions and many more. If you like this extension please help us by joining us on facebook. Download link : https://chrome.google.com/webstore/detail/mkmdpdliefhnnfnfmpdlanfbmeofaklk?utm_source=chrome-ntp-icon