Follow Me on Twitter!

Information

You are currently browsing the archives for the How To category.

My website was once hacked by a hacker from Saudi Arabia. He managed to get into the server and replaced the index.php file with his own index file. I don’t know how he can get into my server but I have learnt many things from that bad experience.

Always upgrade your Wordpress to the latest version – It is really recommended to upgrade your Wordpress to the latest version. It is because each new version contains bug fixes and patches to vulnerabilities that exist in the older version. So make sure that you upgrade your Wordpress when the latest version is out.

Files and folders permission – In Wordpress, we need to set permission to certain files or folders to make it works properly. Especially when using plugins that need special CHMOD 777 permission. When you doing this, make sure that you give permission to the correct files and folders only. We don’t want other peoples can upload and run script through our server, right?

Read more…

To clean your CRT monitor or LCD screen is not like cleaning your face mirror. Monitor and LCD is an electronic product so you must clean the screen with care, or you will scratch it and harm it. Before you can start doing your job, you need to get the correct tools first. Here is what we need:

1. Dry soft cloths (no tissue paper please)
2. Water (I prefer using water than using other chemical to clean my monitor)
3. Compressed air

Clean your CRT monitor
Clean CRT monitor is easier than cleaning LCD screen. CRT monitor has glass screen so you just need to wipe the screen out. After you switch off the monitor, spray the screen with compressed air to remove the dust from the screen. This dust will leave tiny scratch if you not remove it from the screen. Next, spray the water on to a dry cloth and wipe the monitor screen with it. Don’t ever spray the water directly to the screen. We don’t want to make any trouble, do you? After you wipe the screen with the cloth, then wipe the screen dry with another dry cloth.

Read more…

If you have many ads or affiliate banners and you want to rotate them on your website, here is the way on how to do it. But make sure your server supports PHP because we are using PHP script here.

First, you need to create a blank PHP file and name it as rotateads.php. Then copy this code and paste it in.

<?php

$bannerCounter = 1;

$bannerCode[$bannerCounter] = ‘replace with your ad code‘;
$bannerCounter++;

$bannerCode[$bannerCounter] = ‘replace with your ad code‘;
$bannerCounter++;

$bannerAdTotals = $bannerCounter – 1;
if($bannerAdTotals>1)
{
mt_srand((double)microtime() * 1234567);
$bannerPicked = mt_rand(1, $bannerAdTotals);
}
else
{
$bannerPicked = 1;
}
$bannerAd = $bannerCode[$bannerPicked];

echo $bannerAd;

?>

As you can see at the above code, you need to replace “replace with your ad code ” with your own ad or banner code. If you want to put more ad in the rotation, just add these two more lines

$bannerCode[$bannerCounter] = ‘replace with your ad code‘;
$bannerCounter++;

below the previous one.

Read more…

If you want to make your document more safe, you can use this trick to print out your documents using invisible ink from your inkjet printer. But first, things that you need are:

  1. Empty inkjet printer catridge
  2. 4 invisible ink pens
  3. UV light

Ok, I already have the things needed. So what’s next? Watch this video.

I was trying to setup WHMCS, a complete client management solution at localhost at the office. This thing needs cURL enabled before I can proceed to install the script. Because WHMCS is new to me and because my boss wants me to integrate WHMCS in their new website, so I need to use it and study how it works. But first, I must handle the cURL problem.

xampp.gifXAMPP as some of you may already know, it is an application that you can use to make your computer acts like a server. It is really useful if you want to play with PHP files, test scripts, do mySQL queries, etc. You also can run Wordpress in XAMPP. Almost of the time I use XAMPP to develop and test my Wordpress themes locally.

Read more…

Some of you may already know what is RSS feed and know how to subscribe them. But I’m sure some of you don’t know what exactly RSS feed and how you can use them as a loyal reader or visitor. But I will not discuss what is RSS here because you can learn it by asking Mr Google or you can read directly from here.

So, in this post I will teach you or I will guide you on how to subscribe RSS feed. But first, you need to get a RSS link and a feed aggregator or some peoples call them as a feed reader.

To get RSS link, usually it marks with these images or just a text like this.

RSS Feed

Just copy the URL and paste it in your feed reader. In this how-to, I will use two softwares as for the example. FeedReader (freeware) and FeedDemon (shareware). So, we will have two sections here.

Let’s start our how-to with FeedReader. :)
Read more…

You no need to buy expensive liquid or foam to repair scratched discs. All you need is just toothpaste. Yes, I said toothpaste. With the toothpaste, you can fix the scratches on the discs and get the shiny back.

Here how you can do it by yourself to repair the scratched discs.

  1. Put toothpaste on the disc surface.
  2. Apply the toothpaste all over the scratches.
  3. Rinse with water.
  4. Dry it with clean cloth.
  5. Done!

As demo, watch the video below.

Read more…

Because my Paypal account has been verified, so I’m looking on how to create a Paypal donation button. Ha3. After created my own Donation button, here, I want to share with you how you can make one to put on your website. But first, I assume you already have your own Paypal account. Otherwise, you can register for free at their register page . Ok, lets move on.

  1. Login to your Paypal account
  2. Go to Merchant Tools and click on Website Payments Standard
  3. Next step, click on Feature List under Website Payments Standard category
  4. Under Payment Processing Options, click on Set it Up to setup your Donations button
  5. You can leave everything (Optional) to blank
  6. Choose your Donation button.
  7. Click on Create Button Now and paste the code given into your site template.
  8. Done!

So…you have learnt something from here right? Why don’t you donate $1USD for me. Lol… I’m just kidding. But I still want to put the $1USD donate button below this post. Click on it if you want to donate to me. :d [tags]paypal, donation button, donation[/tags]


First and foremost, I would like to say thank you very much for those who gave me comments and suggestions to my last post. Here, I found two ways how you can prevent someone from hotlinking your files and eating up your bandwitdh.

1st Method – CPanel HotLink Protection

cpanel_logo.gifIf you use CPanel, you can set and block peoples from hotlinking your files with HotLink Protection option. Just login into your CPanel and click on the HotLink Protection icon. In the HotLink Protection page, you can set which urls you allow for access, file types that you want to protect, url to redirect the hotlinked files and option to allow direct request.

For more clear view about this, I have prepare you with a flash video on how to use the HotLink Protection option. I found this video from my hosting provider FAQ page.

Read more…

In Internet Explorer (IE), transparent background image in PNG format will appear to be gray and not transparent as it should be. That’s why you need this fix to repair the image when it comes in IE.

To fix it, you can use AlphaImageLoader filter. See below for an example.

  1.  
  2. <head></head>
  3. <body bgColor="blue">
  4. <!– This DIV is the target container for the image.  –>
  5. <DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400;
  6.     filter: progid: DXImageTransform.Microsoft.AlphaImageLoader(
  7.     src=’image.png’, sizingMethod=’scale’);" >
  8. </DIV>
  9. </body>
  10. </html>
  11.  

[via Microsoft Support]