Author name: Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.

PHP: Delay Function that Halt Code Execution Temporarily and Then Resume It

Sometimes you need to temporarily halt the code execution of your PHP script for certain seconds and then automatically resume it. For example, some mail delivery servers have the restriction that you have to wait a certain interval such as 12 seconds before sending another email. You can tell your PHP script to stop for …

PHP: Delay Function that Halt Code Execution Temporarily and Then Resume It Read More »

Way to go PayPal! – Fraudulent Chargeback Successfully Resolved in Merchant’s Favor

I made a sale months ago when someone purchased a few website scripts for over $1,500. A few days after the transaction he fired a chargeback dispute. I thought, well ok, I’m puked. I almost gave in. But then I thought I couldn’t let him win this easily. So I provided everything I can with …

Way to go PayPal! – Fraudulent Chargeback Successfully Resolved in Merchant’s Favor Read More »

PHP and JavaScript Variable / Value Transfer / Exchange: How to pass variable values from PHP to JavaScript or JavaScript to PHP?

This is a rather common problem for novice web developers. While it may seem at first glance that it’s easy for PHP and JavaScript to communicate with each other, but they actually cannot interact with each other directly. They are very different technologies built for distinct purposes. How to transfer or pass variable values from …

PHP and JavaScript Variable / Value Transfer / Exchange: How to pass variable values from PHP to JavaScript or JavaScript to PHP? Read More »

How to execute / run PHP code inside JavaScript files?

Static files of JavaScript would survive most applications but sometimes the ability to include PHP code inside JavaScript scripts and generate the content of the script files on the fly by PHP is a better option. How does one do that? The simplest solution is to just include PHP code inside the <script></script> section of …

How to execute / run PHP code inside JavaScript files? Read More »

MySQL logic operators: How to use AND, OR together in WHERE clauses in one query?

AND and OR are common logic operators across all programming languages and in MySQL, they mean the same thing. A statement (a.k.a, a condition in any WHERE clauses such as id > 100) can be either true or false. A group / combination of statements can be true or false, depending on their own values …

MySQL logic operators: How to use AND, OR together in WHERE clauses in one query? Read More »

This payment cannot be completed and your account has not been charged. Please contact your merchant for more information.

Very rarely you may encounter this error after you have clicked the “Pay Now” button on PayPal to send payment to someone / merchant in purchase of something: This payment cannot be completed and your account has not been charged.  Please contact your merchant for more information. At first, I blamed my website payment integration …

This payment cannot be completed and your account has not been charged. Please contact your merchant for more information. Read More »

Prova.fm, the Design Contests Platform – From Outsource to Crowdsource

When you need something done, design contests are a much better way to get the quality and diversity you need than traditional design outsourcing because you get multiple submissions from various designers who are after the bounty prize. It may be a little more expensive than when you hire just one designer, but the quality …

Prova.fm, the Design Contests Platform – From Outsource to Crowdsource Read More »

How to delete a Skype account so that it doesn’t appear in search?

Several of the Google results for ‘how to delete Skype account’ suggest that you can’t literally delete any Skype account once created. However it really bothers me that more than one account under one email address would definitely confuse people who have searched for you and are trying to figure out which one is the …

How to delete a Skype account so that it doesn’t appear in search? Read More »

How to bring down / optimize memory usage in your unmanaged Linux VPS box and avoid OOM (Out Of Memory) errors?

The other day I was very upset about some extraordinary down times of my unmanaged VPS box at Linode. As it’s unmanaged, support staff at Linode are not responsible for the failures. I contacted them and they told me it’s OOM (Out Of Memory), pointing me to the right documentation to figure out how to …

How to bring down / optimize memory usage in your unmanaged Linux VPS box and avoid OOM (Out Of Memory) errors? Read More »

My WiredTree Review and Some Discount Coupon Codes

Update: Here’s my most recent review of WiredTree. I had an enjoyable experience with WiredTree (Some Coupons) half a year back when I was starting a joint venture with one of my friends and needed managed VPS hosting. Joe Doss was very helpful in answering my concerns and questions before sign-up. After testing out their …

My WiredTree Review and Some Discount Coupon Codes Read More »

How to Enable / Change vBulletin Default Thread Subscription Mode for New User Registrations?

One of the foremost things you want of your own vBulletin forum is that the users can engage in it as much as they would. Though email subscription is a little too bothering than people need, control panel subscription that lists all the threads your users have started or participated in will definitely increase the …

How to Enable / Change vBulletin Default Thread Subscription Mode for New User Registrations? Read More »

Use .htaccess to allow access only from a single HTTP referrer

Sometimes you want the user to access something (a web page or a downloadable file) only by clicking a link on your own website instead of being able to directly access it by typing in the URL address in the browser address bar. This is achievable by a few lines in .htaccess. RewriteEngine On RewriteCond …

Use .htaccess to allow access only from a single HTTP referrer Read More »

The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding)

Most of the existing URL cloaking services are only a redirection by a randomly generated short URL. The real URL of the target website or web page will eventually be revealed when the visitor arrives at it after the obscure redirection. So how to ACTUALLY hide and cloak the destination URL of any website or …

The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding) Read More »

Create Contact and Survey Forms with FormKid.com the Free Online Form Builder

I just finished creating yet another web application that may be useful to fellow webmasters, FormKid.com. It helps you create professional online web forms for your website. Check out what I created just now, a contact form for Kavoir.com. You can contact me by filling out and submitting the form from now on! Currently you …

Create Contact and Survey Forms with FormKid.com the Free Online Form Builder Read More »

How to convert .png, .gif, .bmp or .jpg images to .ico icons to make favicon.ico for your website?

Over a year ago I created this online web application Convert Hub by the help of the splendid open source image manipulation library Netpbm. Give it a try, upload an image and convert it to another format. But not just that, it’s also capable of resizing an image, rotating or flipping it. I love it. …

How to convert .png, .gif, .bmp or .jpg images to .ico icons to make favicon.ico for your website? Read More »

Simplest PHP Hit Counter or Download Counter – Count the Number of Times of Access (Page Views or File Downloads)

Here’s how you can create yourself the simplest PHP hit counter that records the number of times any resource on your website that has been accessed (visited or downloaded). It can be either a web page or a downloadable file package. The hits number will be stored in a plain text file named count.txt. Hit …

Simplest PHP Hit Counter or Download Counter – Count the Number of Times of Access (Page Views or File Downloads) Read More »

Turn off and disable magic_quotes_gpc in .htaccess

It’s not only insecure but it inconveniently commands the use of PHP function stripslashes() every time you pull something from the database or when you get something from the client side. While most of the hosts out there are using factory settings of PHP that turn off magic_quotes_gpc by default, there are a few that …

Turn off and disable magic_quotes_gpc in .htaccess Read More »

Scroll to Top