Monthly Archives: February 2012

Calculate days between dates

Using php strtotime function difference between dates: Another way to set date with mktime function: Before PHP 5.1.0 negative timestamps were not supported. Under any known version of Windows date could be from 1970 to … Continue reading

Delete WordPress users with no posts by MySQL query

(4)

Back up your database regularly, and always before any upgrade. This query delete wordpress users (and they meta info) with no posts: This query select users with no posts: This query select users with no … Continue reading

Text language detection with php

(5)

Previously was Google Language API for language detection but it is now paid. I found an alternative way to detect the language of text using Text_LanguageDetect pear package with 52 supported languages. Here is lithuanian … Continue reading