Browse All Articles (20)

Views | Rating | Comments | Date | Alphabetic

Results 16-20 of 20

Bytes to File Size with PHP and JavaScript

8 months ago on September 10
963 views, 0/5 rating, No comments yet
functions, javascript, php

Most developer languages give you a file's size in bytes. With these methods you can convert them to readable amounts and units.

Read more →

Databaseless Currency Conversion for PHP

10 months ago on July 14
788 views, 0/5 rating, 2 Comments
currency, download, php

Note: Country and currency codes are added and removed periodically by the ISO and not reflected in this example. For that, please see Download Free ISO Codes and Exchange Rates.

Read more →

Google Weather API Class for PHP with Caching

3 months ago on February 9
774 views, 0/5 rating, 6 Comments
api, class, download, gd, google, php, weather

A reliable, easy-to-search, international weather feed service is hard to come by. There are lots out there, but they either require a complicated sign-up process, are limited to a single country, or make searching for location weather a multi-step process.

Read more →

Creating a Basic Flash MP3 Player with ID3

8 months ago on September 3
680 views, 0/5 rating, No comments yet
actionscript, adobe, download, flash, sound, tutorial

Here's the structure of a basic Flash MP3 player. Song information is retrieved from the file itself through its ID3 tags. For the most part, all functionality is written with ActionScript. There are also drawn components such as the Movie Clip bar fills, which use the ColorTransform class to dynamically alter its color.

Read more →

Relative Dates in PHP and JavaScript

4 months ago on January 22
333 views, 0/5 rating, No comments yet
date, functions, javascript, php

Displaying dates for a user can be a bit tricky. First, you have to take into consideration what time zone they are in and what date format they prefer. Also, some people consider it easier to calculate a relative date in their mind. An easy workaround to this mess is to display dates in a relative format, "2 hours ago", "5 months ago." The way this is done, is to take the difference of two Unix timestamps--virtually, seconds since January 1, 1970 00:00 UTC.

Read more →

More pages