Format bytes with PHP – B, KB, MB, GB, TB, PB, EB, ZB, YB converter

Updated by on Oct 15, 2010 in Featured, PHP, Programming, Uncategorized | 1 comment

Simple PHP function that formats the bytes to the desired form. Possible unit options are: Byte (B) Kilobyte (KB) Megabyte (MB) Gigabyte...

Read More

PHP: Loop through dates (from date to date) with strtotime() function

Updated by on Oct 15, 2010 in PHP, Programming | 6 comments

This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo dates, but of course...

Read More

PHP Script to Generate PostgreSQL Table Partitioning (Part 2)

Updated by on Sep 7, 2010 in Programming, SQL | 1 comment

As Part 1 (Howto create PostgreSQL table partitioning) shows, making of PostgreSQL partitioning needs a lot of SQL commands. So this Part 2...

Read More

Hide Apache ServerSignature/ServerTokens/PHP X-Powered-By

Updated by on Dec 8, 2011 in Command Line Guides, Linux, Servers | 0 comments

By default almost all Apache installation shows sensitive server information with Apache version number, server operating system details,...

Read More

CSS compression with own PHP class VS CSSTidy

Updated by on Oct 15, 2010 in PHP, Programming | 2 comments

It makes sense to optimize the site’s cascading style sheets (CSS), as it pages load faster, and it reduce the amount of data...

Read More

Prevent the browsers to use old cached CSS and JS files

Updated by on Sep 9, 2010 in Programming | 0 comments

Browser cache is very useful when users download the same CSS and JS files multiple times. Some browsers, however, use the old CSS and JS...

Read More

Nano Text Editor and nanorc Tips and Tricks

Updated by on Dec 12, 2011 in Command Line Guides, Featured, Linux | 1 comment

Nano is easy to use and lightweight command line text editor for Linux and UNIX systems. Nano text editor can use either the default...

Read More
Page 2 of 212
Bear