Archive for the 'PHP' Category

Adsense Split Testing Results for 250×250 vs 300×250

If you remember back to the post I wrote, Using PHP to Determine Which Adsense Ad Works Best, we explored ways to split test the performance of Adsense with the help of PHP. I had also promised to share the results of my testing for the month of April. Below are my results. Read more »

Using PHP to Determine Which Adsense Ad Works Best

I recently read an article that discussed the effectiveness of different adsense ad sizes. The three medium box shaped ads that adsense offers is:

250×250
300×250
336×280

The article mentioned that even though the 336×280 was the largest it wasn’t neccesarily the best performing advertisement since most online advertisers develop their image ads to fit in a 300×250 slot. Read more »

Calculating UPS Shipping Rate with PHP

It’s actually very easy to calculate shipping from UPS with PHP once you know how. But at first glance it seems like an impossible task to do. Read more »

Send email notifications with php

In order to send an email notification on your site via php you will probably need some sort of scheduled task program. This will execute the php script routinely. Since I tend to use open source software I used cron. Cron is found in Unix and Unix-like operating systems and is used to schedule commands to be executed periodically. It reads a series of commands from standard input and collects them into a file known as a “crontab” which is later read and whose instructions are carried out. Read more »

Download files through authentication

I recently needed to implement a way for authenticated users to download files. Normally to host a file for download on a site you would need to provide the url to the download. www.yourdomain.com/restrictedfile.pdf. Read more »