Paper size

ISO paper sizes (plus rounded inch values)
Format A series B series C series
Size mm × mm in × in mm × mm in × in mm × mm in × in
0 841 × 1189 33.1 × 46.8 1000 × 1414 39.4 × 55.7 917 × 1297 36.1 × 51.1
1 594 × 841 23.4 × 33.1 707 × 1000 27.8 × 39.4 648 × 917 25.5 × 36.1
2 420 × 594 16.5 × 23.4 500 × 707 19.7 × 27.8 458 × 648 18.0 × 25.5
3 297 × 420 11.7 × 16.5 353 × 500 13.9 × 19.7 324 × 458 12.8 × 18.0
4 210 × 297 8.3 × 11.7 250 × 353 9.8 × 13.9 228 × 324 9.0 × 12.8
5 148 × 210 5.8 × 8.3 176 × 250 6.9 × 9.8 162 × 229 6.4 × 9.0
6 105 × 148 4.1 × 5.8 125 × 176 4.9 × 6.9 114 × 162 4.5 × 6.4
7 74 × 105 2.9 × 4.1 88 × 125 3.5 × 4.9 81 × 114.9 3.2 × 4.5
8 52 × 74 2.0 × 2.9 62 × 88 2.4 × 3.5 57 × 81 2.2 × 3.2
9 37 × 52 1.5 × 2.0 44 × 62 1.7 × 2.4 40 × 57 1.6 × 2.2
10 26 × 37 1.0 × 1.5 31 × 44 1.2 × 1.7 28 × 40 1.1 × 1.6

The tolerances specified in the standard are

  • ±1.5 mm (0.06 in) for dimensions up to 150 mm (5.9 in),
  • ±2 mm (0.08 in) for lengths in the range 150 to 600 mm (5.9 to 23.6 in) and
  • ±3 mm (0.12 in) for any dimension above 600 mm (23.6 in).

Clean Word HTML using Regular Expressions

function cleanHTML($html) {
///
/// Removes all FONT and SPAN tags, and all Class and Style attributes.
/// Designed to get rid of non-standard Microsoft Word HTML tags.
///
// start by completely removing all unwanted tags
$html = ereg_replace(“<(/)?(font|span|del|ins)[^>]*>”,””,$html);
// then run another pass over the html (twice), removing unwanted attributes
$html = ereg_replace(“<([^>]*)(class|lang|style|size|face)=(\”[^\”]*\”|'[^’]*’|[^>]+)([^>]*)>”,”<\\1>”,$html);
$html = ereg_replace(“<([^>]*)(class|lang|style|size|face)=(\”[^\”]*\”|'[^’]*’|[^>]+)([^>]*)>”,”<\\1>”,$html);
return $html
}

http://snipplr.com/view/5217/clean-word-html-using-regular-expressions/

SEO meta tags

What Does This Meta Tag Look Like?

This meta tag is usually placed beneath the title and meta description tags in the

<HEAD></HEAD> section of your pages’ HTML code, like this:<HEAD>
<TITLE>your DESCRIPTIVE KEYWORDS title goes here</TITLE>
<META NAME=”DESCRIPTION” CONTENT=”Your keyword rich marketing sales-pitch meta description goes here”>
<META NAME=”KEYWORDS” CONTENT=”your keywords,go here,separated by a comma,but not a space”>
</HEAD>

mysql_pconnect VS mysql_connect

resource mysql_pconnect ([ string $server = ini_get(“mysql.default_host”) [, string $username = ini_get(“mysql.default_user”) [, string $password = ini_get(“mysql.default_password”) [, int $client_flags ]]]] )

Establishes a persistent connection to a MySQL server.

mysql_pconnect() acts very much like mysql_connect() with two major differences.

First, when connecting, the function would first try to find a (persistent) link that’s already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.

Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (mysql_close() will not close links established by mysql_pconnect()).

This type of link is therefore called ‘persistent’.