I was using simple function to calculate difference between two dates and timestamps until I noticed, it's not working correctly in long intervals. It's very easy to calculate difference between two timestamps in seconds, but it's much more complicated print difference in human readable format. The Internet can be found in a wide range of ways to do this thing, but as a rule they use a fixed amount of seconds for the year and the month. So if we calculate year with using 365 or 365.25 days and...

In many cases, it is really useful to know the exact time for how long a PHP script is running or how long will take PHP web page load. On the other hand it is also useful to know that how long a particular script operation or part of page load will take.
Following PHP Timing class is very simple to use, only create class and start timing and stop timing. Elapsed time function can be used also (elapsed time is calculated from script start time). Statistics can be displayed in...

This is quick guide, howto Backup (dump) and Restore (load) SVN (Subversion) repository on Linux. This is actually very simple and important task. SVN backup and restore is useful when you want to move your repos to new server or you need to recover your data. I assume here that you have Subversion (SVN) installed and you have existing repositories. If you installed and created testrepo with earlier guide then you can check real examples.
[inttf_post_ad1]
1. Backup (dump) SVN...

Sometimes it's nice to know or even very important to know, how much your PHP script is using memory. This is a simple example of a class, which can be used to collect the PHP script memory usage information and to print all information. It's easy to reformat output, if you want to use it example on web page or command line script. Or even do another function for web pages and another for command line scripts.
[inttf_post_ad1]
Memory Usage Information PHP Class
<?php
...

This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo dates, but of course this model can be used more complicated situations.
[inttf_post_ad1]
<?php
// Set timezone
date_default_timezone_set('UTC');
// Start date
$date = '2009-12-06';
// End date
$end_date = '2020-12-31';
while (strtotime($date)
[inttf_post_ad2]
Note: All different PHP strtotime() function syntaxes can be...

PHP Command Line Interface (CLI) has not built-in coloring for script output, like example Perl language has (perldoc.perl.org/Term/ANSIColor.html). So I decided to make own class for adding colors on PHP CLI output. This class works only Bash shells. This class is easy to use. Just create new instance of class and call getColoredString function with string and foreground color and/or background color.
[inttf_post_ad1]
PHP Class for Coloring PHP Command Line (CLI) Scripts...

This is huide howto install Chromium Browser on CentOS 6 / Red Hat (RHEL) 6. Move directly to Chromium install guide.
It's true Google Says Red Hat Enterprise Linux 6 Is Obsolete and after latest update, Google Chrome won't work anymore on CentOS 6/Red Hat (RHEL) 6. Someone might think that it's time to change Firefox or Opera, but if you have get used to Google Chrome, then it might be hard. Currently it might be possible to compile newer GCC and get Google Chrome working on Enterprise...

This is guide, howto upgrade Fedora 21 to Fedora 22 using FedUp.
I have tested this method on several machines, but if you have problems, please let me know. Always remember backup, before upgrade!
1. Before Upgrade
1.1 Backup Your Data
Before doing anything, do full system backup or backup at least your important data: documents, pictures, videos, config files, log files, databases etc. This is very important, because if something go wrong and you have to do fresh install,...

Looking Fedora 22/21 nVidia Drivers Install Guide?
[inttf_post_ad1]
This is guide, howto install nVidia proprietary drivers on Fedora 18 "Spherical Cow" and disable Nouveau driver. This guide works with GeForce 8/9/200/300/400/500 series cards (and currently also with GeForce 6/7). Later you might need different version of nVidia drivers if you use GeForce 6/7 card.
Fedora 18 nVidia driver installation is not much different from previous Fedora versions. I have tested this...

Looking Fedora 22/21 nVidia Drivers Install Guide?
[inttf_post_ad1]
This is guide, howto install nVidia proprietary drivers on Fedora 17 "Beefy Miracle" and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300 series cards.
Fedora 17 nVidia driver installation is not much different from previous Fedora versions. I have tested this guide with a couple computers, so let me know, if you have some problems.
Before nVidia drivers installation
Check is your...

Looking Fedora 22/21 nVidia Drivers Install Guide?
[inttf_post_ad1]
This is guide, howto install nVidia proprietary drivers on Fedora 16 and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300 series cards.
Fedora 16 nVidia driver installation is not much different from previous Fedora versions. I have tested this guide with a couple computers, so let me know, if you have some problems.
Before nVidia drivers installation
Check is your nVidia card...