Archive for posts tagged ‘programming’

A PHP function to sum values in associative arrays

Combine two or more associative arrays and sum the values of any keys that exist in common.

Read more...

Aleph Studios Is Launched

I’m excited to announce a new site of mine – Aleph Studios – which will be the new home for my web development freelance work.

Read more...

HTML auction template generator

Simple Auction Wizard is an online HTML template generator for auction websites like eBay. It’s fast, free, and easy to use.

Read more...

Protecting multiple downloads using unique URLs

A PHP script for protecting multiple downloads by the use of unique URLs. The actual file on the server is not discoverable and each URL will only be valid for a certain period of time and number of uses.

Read more...

Minifi.de – Another URL shortening service

Minifi.de is a URL shortening service like tinyurl.com, bit.ly, and is.gd. You enter a long URL and it returns a shorter one.

Read more...

A PHP script for converting between different datetimes

This script converts a Unix timestamp (Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)) to the International Standard ISO 8601 date and time notation (YYYY-MM-DD hh:mm:ss) and vice versa. I find it useful for verifying datetimes. Date Time Convert

Read more...

Protecting a download using a unique URL

A PHP script to protect a download by generating a unique link. Each time you visit a page, a unique link is created that can be shared. The link will expire after a certain amount of time or number of uses. With some work, this could be integrated with your Paypal “thank you” page.

Read more...

A PHP script for testing a MySQL database connection

A simple web page that you can use for testing a MySQL database connection.

Read more...

Resolving transaction concurrency issues in a PHP+MySQL multi-user environment

Here’s how I’m implementing my solution to the lost update concurrency issue by comparing timestamps generated when a record is saved and accessed.

Read more...

How to Geolocate Visitors Using an IP-to-Country Database

In this post, I’ll illustrate how to use the IP-to-Country database available from http://ip-to-country.webhosting.info/ to identify the real-world geographic location of visitors to a web page (geolocate) based on their IP addresses. Once you know where a visitor is physically located, you can do all sorts of nifty things, such as send them location-aware content [...]

Read more...