Andy Crawford

How do I create a MySQL back-up using a cPanel Cron Job command and give each back up a new name so as not to overwrite the old file?

After a lot of searching and tweaking I managed to create a command so that every time a new MySQL back-up is created, the old back up is preserved.

It is easy enough to create a Cron Job using cPanel to create a back-up,. Just use the following Cron Job Continue reading

How do I redirect a request for a specific URL to the domain root using htaccess?

The short answer

RedirectMatch 301 ^/the-url-to-redirect/$ http://www.domain.tld/the-new-url/

The Problem

I have a WordPress blog in a subdirectory, but I want calls for the domain root to display content of the sub directory. However I also want the sub directory to display in the URL for all OTHER URL requests. Eg Continue reading

How do I redirect my entire domain from one domain to another with a 301 Permanent Redirect using htaccess

The short answer

RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]

Gumtree Scammer SCAM ALERT Mary Maxwell marymaxwell78@gmail.com

Shortly after placing and advert on Gumtree I received the following email enquiries initially via the Gumtree email system and then by email directly.

Message 1 is your item still available for sell ? From: Mary Maxwell

!!! SCAM ALERT !!! It was only just listed as shown on Continue reading

How do I change a ‘Page’ to a ‘Post’ in WordPress?

This works the other way around too if you want to change a Post’ to a ‘Page.

From time to time you may want to change a WordPress Page to a Post or vice-versa. This might be due to restructuring your website content or your WordPress blog. There is no Continue reading

How do I recover deleted email from Outlook Express .dbx files?

It’s like this. I swapped my email from one IMAP server to another when changing the website hosting. I configure the email account on the new server and when I connect again, whoosh, all the email in my mail box gets deleted. Lost, gone…(sob)

But all is not lost! Outlook Continue reading

Un-ban or remove ban from WHMCS

How to remove a ban from WHMCS?

The first time I discovered there was an IP address ban facility in WHMCS was after three unsuccessful login attempts I made after I changed my password but I still had the old password stored in my browser.  Durh!

I found myself Continue reading

How Do I Redirect My Old Domain To a New URL But Keep The Domain in the Address Bar?

I searched for hours trying to do this by .htaccess and then found I could do it by creating an html index page for the old domain and then adding the following code:

<iframe style='position:absolute;z-index:10;top:0;left:0;margin' 
width='100%' height='100%' scrolling='auto' marginwidth='0'
marginheight='0' align='top' frameborder='0' SRC='http://new-url-here.tld' />
</iframe>

The index page for Continue reading

How do I get my Facebook ‘like’ button to align with Google Plus and Twitter

The Facebook ‘like’ button will not always automatically align with other buttons such as Google Plus and Twitter. What you need to do is add some ‘style’ to the Facebook Like button code.

At the end of the code add this:

style="vertical-align:top;zoom:1;*display:inline"

Now they all sit nicely level with each other

How do I get my website listed in search engine results?

Getting websites listed on search engines is easy enough. Getting websites listed at the top of search engine results is the difficult part. There is no easy way, silver bullet or quick fix.

Search engines, like Google will repeatedly ‘crawl’ the Internet looking at pages and content and it will Continue reading

Fenland District Council – Naturist Swim Saga

I originally posted this in 2005 after a lengthy battle with Fenland District Council.

Prelude

During the summer of 2004, a change of management along with a “reveiw of child protection policy” led to a ban on children attending naturist swimming events on premisis operated by Fenland District Council. The Continue reading

How do I remove “Comments are closed.” from WordPress Posts?

If you want to turn off the comments feature on WordPress posts you may do so by:

Posts -> Quick Edit -> Uncheck “Allow Comments”.

But, WordPress still displays the words ”Comments are closed.” at the foot of the page. The way to remove this is to edit the Continue reading

Free Website Hosting

Website Hosting Packages come with a variety of features and scripts already installed on the server, so to a certain extent, you get what you pay for. The more features and services, the more disk space and the more bandwidth allowed, the more the website hosting package is likely to Continue reading

Formmail CGI script stopped working on 1and1 shared hosting?

My formmail script recently stopped working under several domains hosted on the 1and1 shared servers. Not all domains, just some.

The reason seemed to be that the  ”$postmaster =” email address in formmail.pl was set to an address that was not with 1&1 (i.e. a domain not hosted with Continue reading

How do I test if Perl is working on my server?

Create a file called test.pl

Add the following text:

#!/usr/local/bin/perl
 print "Content-type: text/html\n\n";
 print "test\n";

Upload it to your cgi-bin directory by ftp.

(If you do not have a cgi-bin directory create one on the server.)

Open your web browser and run:

yourdomain.com/cgi-bin/test.pl

The word test will be displayed.

How to format a Micro SDHC card in NTFS in Windows XP to increase maximum file size from 4gb

[1] Insert your Micro SDHC into you device or a card reader and connect to your computer.
[2] Set the Device Properties “Policies”

Right click “My Computer” Properties > Hardware > Device Manager > Open “Disk Drives” Right click the drive to format. Properties > Policies select the radio button Continue reading

How can I secure or encrypt the data on my hard drive?

If you want the data on your hard drive to be secure and unable to be read by anyone else, the data needs to be encrypted.

Encryption is a method of changing the data in to a format, which cannot be read without using a decryption “key”, this is usually Continue reading

Display Errors in Internet Explorer 8 using Artisteer, WordPress, jQuery and iFrames

Artisteer is usually very stable and reliable, but I came across this display error whilst working on another website.

The symptoms were:

  • The menu bar repeated itself and stretched down the page
  • A large gap appeared below the content or “comments are off”
  • The page froze, no scrolling, and none Continue reading

t

The default value for the content editor in WordPress is 30 lines which is rather small if you are working on large or complex pages.

You can change the height of the editor by going to:

Settings > Writing

Then changing the size of the Size of the post Continue reading

How can I delete the data on my hard drive?

From time to time it may be necessary to erase the data on your hard drive. It might be that you are selling the machine, passing it to another user, or just want a clean installation.

Even if you were to reformat the hard drive and reload the operating system, Continue reading

How do I stop my uploaded WordPress files from being accessed by users who are not logged in?

One of the security loopholes with WordPress is that while you can prevent pages and posts from being accessed by unauthorised users who are not logged in, any uploaded files (such as images and PDFs etc.) are still available to anyone who has the URL. If the URL is picked Continue reading

Artisteer Theme Design Software for WordPress Joomla and Drupal

There are essentially two problems with ready made themes for the popular CMSs such as WordPress Joomla and Drupal. First is that they never quite do what you want them to do, and secondly, making changes to them are time consuming and can be messy.

Artisteer is a website theme Continue reading

How Secure is Email? A Brief Report on the Security of Email

A while ago I had a conversation with someone who was convinced that using email to transfer private and confidential data was quite secure and that no further security needed to be put in place. I wrote the following report to help convince them (and their organisation) that email was Continue reading

How do I remove the Website field in the WordPress comments form?

WordPress by its very nature, is attractive to Spammers seeking ways of publicising websites which may be totally irrelevant to the content of the host website. While active “bloggers” may have their own blog website, many casual commenters and surfers do not. Therefore, while you might want to allow comments, Continue reading

How do I correct the Google Maps display error in Internet Explorer when using UI Tabs?

For tabbed browsing in WordPress installations, I have been using the plugin Post UI Tabs (PUT) http://wordpress.org/extend/plugins/put/ The only problem is that when a Google Map is embedded within a tab, a resizing/display problem is caused. As far as I can see there is no easy fix.

There seems to Continue reading

How do I recover my files when Windows will not boot?

When windows fails to boot you can often recover all your files quite easily. One of the methods I use is to run another operating system from the CD drive and then copy the required files over to a flash drive or external hard drive. Windows can then be Continue reading

How do I find my MAC address in Windows XP?

Your MAC (Media Access Control) address is your devices unique identifier which allows you to connect to a network. It comes in the format of 00:00:00:00:00:00 and consists of letters and numbers. If you need to locate your MAC address here is how to do it.

For Windows XP Continue reading

How do I increase the number of programmes shown in the Start Menu for Windows XP?

By default, Windows XP shows only the 6 most recently used programmes in the Start Menu. If you want to increase that number you may change it manually.

Right-click the Start button select: Properties.

Start Menu (tab)

Customise (button)

General (tab)

After “Number of items shown on start menu” increase Continue reading

How do I search the content of php files in Windows XP?

When working on website script I often need search files for specific text or code. But by default Windows XP does not include php files in its search results. This can be frustrating because you know the text you are looking for is there, but you can’t seem to find Continue reading

How do I add an email contact form in WordPress?

There are plenty of email form plugins available ranging from very simple to install (but lacking features and options) to the more complex ones which take ages to plough through all the option. For a quick-and-dirty solution I tend to use:

Fast Secure Contact Form

http://wordpress.org/extend/plugins/si-contact-form/

Don’t be put off Continue reading

Advertisement – Please Take A Look

Categories