How to Quickly Move a WordPress Site

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

Adding PHP Code to Shortcode Exec PHP

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...]

Auto Rotating Ad Banner, No iFrame, No Page Refresh..And It’s Free!

I've spent the last two days looking for a free script that will rotate an ad banner without requiring a page refresh, an iFrame with a meta refresh tag or anything else that might need visitors to perform an action to get the ads to rotate. Two days! But I found one :) Updated Script and Instructions Here I originally wanted a php script so that all the work would be done by my server and not require Javascript to be enabled in a visitor's browser. I quickly found that it's easy to find a php script that rotates banners and text on page refreshes but not easy to find one that requires no … [Read more...]

All original content on these pages is fingerprinted and certified by Digiprove
Loading

Invite Friends to ‘JournalXtra’

Supercharge your web design skills with JournalXtra

Buy me lunch!

I'm a cheap date. Where else can you buy lunch for a couple of dollars?

I accept Bitcoin too!

Categories

Dynamik Website Builder
WPMU DEV - The WordPress Experts
StudioPress Theme of the Month