php Articles (5)

Views | Rating | Comments | Date | Alphabetic

Results 1-5 of 5

Understanding IP Addresses

2.3 years ago on January 16, 2010
2,745 views, 0/5 rating, 3 Comments
domain, ip, network, php, trace, user agent

In essence, an IP address is a numeric address of a computer network or a single computer. Public IP addresses are assigned by their respective organizations. Most computers, referred to as hosts from now on, have two to three IP addresses. Each of these have a certain meaning to other hosts it might communicate with. If you have a router, all of the information exchanged between local devices and external hosts will go through your router. A responsible Internet user makes an effort to understand how IP addresses work.

Read more →

Bytes to File Size with PHP and JavaScript

8 months ago on September 10
964 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
789 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
776 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 →

Relative Dates in PHP and JavaScript

4 months ago on January 22
334 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 →