Using the Google Site Verification API in PHP

I wasn’t able to find any tutorial or guide on how to programmatically verify a site for Google, server-side from PHP. What follows is my attempt at doing it. You have to install “Google APIs Client Library for PHP”, available at https://github.com/google/google-api-php-client. I recommend reading the Google documentation on Google Site Verification API from https://developers.google.com/site-verification/v1/getting_started […]

Read More

Workaround for gettext caching issue in PHP

gettext is the GNU internationalization and localization (i18n) library, which can be used in almost any programming language. And, of course, it can be used under PHP too, to internationalize your web applications. I will not go into gettext usage details, there are enough resources available for that. Official PHP gettext documentation: http://www.php.net/manual/en/book.gettext.php A nice […]

Read More