There are primarily 2 ways for merchants to set up an affiliate program, one is to offer coupons that are assigned to the affiliates and can be spread out. When someone uses that coupon, the merchant knows it’s a referral by that affiliate. The other is to create dedicated links with the affiliate ID in it. So when someone clicks through the affiliate link, the merchant can identify the affiliate.

click to continue

{ 0 comments }

MilitaryFictionBooks.com is actually an old domain, I registered it over a year ago and parked it ever since with a custom page of my own. It has been indexed in Google for 1 year. So what you are seeing now may very probably not happen for you if you just registered a fresh domain name. Don’t get your hopes too high for newly registered domains. You need to wait and be patient unless you have large amount of Internet marketing resources such as an established network of reputable sites that can link back to the new site.

click to continue

{ 0 comments }

There are tens of thousands of different affiliate programs out there you can use to monetize your traffic. A few of the biggest players are ClickBank, eBay, Amazon, CJ and Google Affiliate Network. Unlike CJ and Google Affiliate Network who are simply brokers of merchants and affiliates, Amazon and eBay are independent merchants. I tried CJ with no luck at all – when I say at all, I mean it. Maybe it’s because I’m not an AdWords type of marketer. Never tried Google Affiliate Network though, but we’ll soon find out how that goes. I’ll keep you updated on what I’m doing. ClickBank has too many information products that require strong marketing skills or generous AdWords spending to get ahead. eBay doesn’t let me sign up in the first place because of my location.

click to continue

{ 4 comments }

God knows why they have raised the .org registration fee to $14.99. I don’t know if it’s temporary or just the way it will be for a long time to come but it’s outrageous. Fortunately I have found this .org domain registration coupon that got me the domain for just $7.69.

click to continue

{ 1 comment }

When you read the content of any specified directory with PHP functions such as scandir() or readdir(), they will return both files and directories. How does one get just the child directories of a given directory in PHP? The obvious solution is the is_dir() function that checks if a filename is a directory:

click to continue

{ 1 comment }

If you have mysqli extension installed with PHP and you use it to perform database operations, after you have tried to connect to MySQL by:

click to continue

{ 0 comments }

When I was creating an installation script, I needed to check if a table exists to make sure the installation had not been performed yet. How did I do that?

click to continue

{ 0 comments }

Edit: Forgot all the website advertising revenues other than AdSense. Added it.

click to continue

{ 7 comments }

This is a pretty odd question to ask in the first place if you have been using JavaScript for a while. JavaScript files are called from HTML web pages who need them to manipulate the HTML elements so that the users have extraordinary interactive experience. You can’t include a JavaScript file inside another JavaScript file like you can with PHP files, but you can only include JS files from HTML files.

click to continue

{ 0 comments }

Normally, when users click on any label tag with the cursor, the corresponding input field will be focused ready for input or selection. Therefore, you can always achieve the focus effect by this native function of HTML’s. Otherwise, you’d need a small dime of JavaScript to set focus to any form element on the fly upon a certain event:

click to continue

{ 0 comments }

To get the URL address of the current page with JavaScript, simply return the value of window.location.href:

click to continue

{ 0 comments }

If the website is run on a Linux server, everything that can be run from the web (i.e., from the browser address bar) can be run from the Linux console. That is if you have the SSH access which most hosts provide. Connect to your hosting server via SSH by putty and you will have the ultimate control over your box. For example, you can execute a PHP script called routine.php via SSH by:

click to continue

{ 1 comment }

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.

click to continue

{ 0 comments }

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.

click to continue

{ 1 comment }

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.

click to continue

{ 0 comments }