Format bytes with PHP – B, KB, MB, GB, TB, PB, EB, ZB, YB converter
Simple PHP function that formats the bytes to the desired form. Possible unit options are: Byte (B) Kilobyte (KB) Megabyte (MB) Gigabyte...
Read MorePHP: Loop through dates (from date to date) with strtotime() function
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 MorePHP Script to Generate PostgreSQL Table Partitioning (Part 2)
As Part 1 (Howto create PostgreSQL table partitioning) shows, making of PostgreSQL partitioning needs a lot of SQL commands. So this Part 2...
Read MoreHide Apache ServerSignature/ServerTokens/PHP X-Powered-By
By default almost all Apache installation shows sensitive server information with Apache version number, server operating system details,...
Read MoreCSS compression with own PHP class VS CSSTidy
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 MorePrevent the browsers to use old cached CSS and JS files
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 MoreNano Text Editor and nanorc Tips and Tricks
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