Monthly Archives: February 2011

How to Move WordPress Blog to New Domain or Location

To update WordPress options with the new blog location, use the following SQL command: UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table… Read More »

htaccess surpress / display PHP errors

# supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0 # display php errors php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on php_value docref_root 1 php_value docref_ext 1

Mobile Phone codes to manage your diverts

If you’re not reachable, you can: * Activate diverts by pressing * * 62 * 901 # [send] * Cancel diverts by pressing # # 62 # [send] * Check the status of your divert by pressing * # 62 # [send] To divert calls when your phone is busy: * Press * * 67… Read More »

Vertical text in an image

<?php header (“Content-type: image/png”); // imagecreate (x width, y width) $text = str_replace(‘_’, ‘ ‘, $_GET[‘text’]); $text = ucwords($text); $img_handle = @imagecreatetruecolor (30, 180) or die (“Cannot Create image”); // ImageColorAllocate (image, red, green, blue) $background_color = ImageColorAllocate($img_handle, 0, 0, 0); //to become transparent later in the script $txt_color = ImageColorAllocate($img_handle, 255, 255, 255); //… Read More »

Category: PHP

BT Fibre and Draytek routers

You may already have a BT Business Hub. The BT engineer will bring a Fibre modem with them on installation day. Let the BT engineer setup the new connect. Once they’ve finished plus the BT Fibre Modem into the ethernet WAN port of the Draytek (in my case a 2820). Configured the draytek to enable… Read More »