WordPress multisite or not, when it comes to migrating WordPress from one domain to another domain, it can get very tricky. Sure, for a single install without multi-site capabilities a migration should be as simple as moving a site's files to a new domain and adding some directives to wp-login.php as described here. But.. What about updating links in posts? What about changing the domain name in custom menus and footer links? What about updating links in comments? What if the site is being moved to a subdomain or sub-directory? There is a better way to move WordPress and update all … [Read more...]
HowTo: Browser and OS Detection with PHP
A very quick PHP script for detecting browser/device and OS agent strings from the HTTP User Agent variable. This is not 100% reliable because surfers and bots sometimes hide or falsify the user agent string so please use with caution. Browser and OS Detection Script This script detects whether the OS/Device is Linux, MacOS, iPad, iPhone, Droid, Unix, Windows or anything else (caught in Unknown). It also detects whether the browser is Chrome, Firefox, Opera or Internet Explorer. The user agent string is stored in the variable $agent. The operating system or device is stored in the … [Read more...]
Really Simple Traffic Logger

Born out of boredom, unrealized necessity and the fruit of another script, this really simple PHP counter logs page views and tracks visitors from the time they enter your site to the time they leave it. Weighing in at slight 9.9 KiB, or 5.6 KiB when all comments are removed, it represents excellent value for a free php website traffic counter and logger. The traffic data logged by Really Simple Traffic Logger is everything you might need to see where your visitors are coming from, where they are going once they are on your site and for optionally displaying a configurable PHP counter on … [Read more...]
How to Install Windows Games and Apps into Linux
Last week I installed Ubuntu Linux onto my 12 year old nephew's laptop. He'd pestered me to do it for a while and this time when he came to visit he brought his laptop with him so I could get it working in ways that Windows never could. He wanted his laptop to work faster than it was with Windows and for all its hardware to work. Previously, we had to re-install Windows after it had become sluggish through software installation, removal, re-installation... As usual, Windows failed to install some of his laptop's hardware. Most importantly to my nephew, Windows failed to install his sound … [Read more...]






