How do you test your PHP scripts? Upload them to your website server and test them one by one, or you test them locally on your computer first before upload them to the server?
To test my PHP files, I use WAMP . With WAMP, you can make your computer act as a website server. Before I knew about WAMP, I always upload my PHP files to web server to test them. But after one of my friends, name Azhar (I called him Ja’a) told me about WAMP, I now will test the scripts locally in my computer before I upload them to my site. [tags]wamp, wampserver, php[/tags]
What is WAMP?
WAMP is stands for Windows - Apache - MySQL - P HP. These are services that are needed to make your computer act as a server. When you install WAMP, WAMP will automatically configures them to work together. So you can test your scripts before you upload them to your server.
Read more…
PSA stands for Public Service Ads which mean you will get nothing if peoples click on those ads. These ads will appear on your site if there is not enough contents or adsense crawler has not yet crawled to your website pages.
Beside you can fill the ads with solid color, you can remove the PSAs with this following code:
Code (html4strict)
-
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-
<script src="http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" type="text/javascript"></script>
-
</head>
-
<body style="background-color: transparent;">
-
</body>
-
</html>
-
-
Copy the code above and save it as a html file. Eg: adsense_script.html.
-
-
Setup your Adsense ads as usual.
-
In the “Show non-Google ads from another URL”box, type in the html file url.
-
Done!
With this, the PSAs will not show up because they have been replaced with the script above. 
[via Malaysia Bloggers][tags]adsense, public service ads, tips, how-to[/tags]
For adsense publishers, as we know, we can set our adsense ads with channels. But how did you name the channels? Here I will share with you tips on how I manage my adsense ads by using specific name format for my adsense channels.
Because I have multiple websites and use wordpress themes, so I need to name the channels according to where the adsense will be displayed. To make it simple I use this kind of format for my adsense channels.
[site/theme]_[file]-[location]-[ads type]
Here are what the meaning for each tag.
- site/theme - Your site or theme name. Eg: k2, kubrick, dfire, chnet.
- file - Filename which you put the adsense code. Eg: index, page, archives, search, 404.
- location - Where you place the adsense code. Eg: header, sidebar, footer, entry.
- ads type - Your adsense type. Eg: adunit, linkunit.
Ok here is an example:
k2_single-header-adunit
What we can get from this channel name is, the ads is an adunit type. It is located under k2 theme folder in file single.php. And the ads is being display on site header.
So when each time you login into your adsense report, it is easier for you to track down which ads are performing well and which are not.
Note:
- If there are more ads in one page in one location, put a number after the ads type. Eg: k2_single-header-adunit2
- Make sure you name your adsense channels properly because the maximum characters are 30.
- You also can use this tips on AdSearch channels too.
If you have anything to ask or want to give suggestions, feel free to leave them in the comment box below. I hope this post is helpful and thanks for your time!
[tags]adsense, google, revenue, tips, channel[/tags]

A few days ago, I have posted about cool dekstop calendar software called Rainlendar 2. All the new features are great. But I don’t know how to edit the style settings like I did in the earlier version.
After I searched at their support forum, I found a topic discuss about this problem. If you want to edit the skin style settings, just rename the skin file extension to .zip and edit the xml/elements.xml. Edit what you want and save the new settings. Then refresh Rainlendar 2 and see the changes made.
Another problems that I currently working on are how to add new categories and how to edit the text colour. If I found the way to resolve these problems, I will update this post again. [tags]rainlendar, rainlendar 2, software, tweaks, how-to[/tags]
After the “disaster ” happen to my site, now I backup my databases daily. But I do it manually. And recently I stumbled to this site on how to automatically backup your wordpress database. The only things that you need are this WP-Cron and WordPress Database Backup. BTW I assumed that you have already install Wordpress Database Backup plugin. If not, you need to download the plugin and install it first before you can proceed.
With WP-Cron plugin, you can schedule your wordpress to backup and send the backup file to your email. Here how to do it:
- You need to download this WP-Cron plugin
- Extract the wp-cron.php file into /wp-content/plugins
- Activate the plugin in Plugin panel
- Then go to Manage > Backup
- Make sure Daily in Schedule is checked and type in the email where you want the file will be sent to.
- Tick other tables that you want to include.
- Click Submit.
- Lastly, wait the attached email to your inbox.
Cypher: I must say that this is really great plugin. I really recommend for you all to download and use this plugin. [tags]how to, backup, cron job, plugin[/tags]
Yesterday my friend SMS me to send an installer (executable) file via email. So I use Gmail as my primary email account and attached the file. But when I want to send the email, Gmail warned me that it does not allow any executable file send from Gmail. I’m sure this is regarding of the security issues. So how I can send the executable file? Here is the trick. 
Ok let say the file that you want to send name is Executable.

-
Go to Folder Options (My Computer > Tools > Folder Options)
-
In
View tab, uncheck “
Hide extensions for known file types“.

And the file will look like this

-
Then
rename the extension .exe with other extension like .jpg. Windows will prompt a warning message, just click “Ok”. The file icon will be changed to .jpg icon and now your executable file is in .jpg format.

-
Send the file to the receipent.
-
After the receipent recieve the file, ask them to rename the extension file with .exe or it will not work.
Note: I have try this many times in Gmail and it works and I’m sure this trick also works in other email services. Because you send an image file not executable file. 
Found this trick useful? Please Digg the story! 
Everyday you update your blog. You write about your life and post it on your site. But no one reads them. Then you try writiting about latest technology and gadgets hoping that you will get some comments from readers on the next day but still, not many people comes to your site. But you still continue posting and updating your site everyday, every night. After some period, you realized that you need to promote and advertise your site but you don’t know how.
Here I will share with you some tips on how to promote and get more readers to your site. I’m no expert in site advertising or marketing but I have some little knowledge that I want to share with you. 
Join bloggers forum
Join and participate in bloggers forum or portals. Introduce yourself and brief politely about your site. Tell them what your site is about. I’m sure in every bloggers forum, there is a section where you can promote or show off your blog. Post something there.
Describe your blog and invite them to visit. If the forum admin enable signature in post (usually it is enable), put your site link in your signature. That way, peoples can see your site link when you post or reply someone’s post on the forum.
Visit other blogs
You must start it first. Don’t wait people come to your site. Visit other member�s blog and drop them some comments about their blog posts. Don’t give comments say something like, “Hey, nice site!” or “I love your site. Cool!” but give comments that relate to their posts. If they read your comment, they also will visit back to your site.
Another way is, if your post same like other people post, trackback their post. I assume you know how to use trackback. 
Read more…