PHP / PDO / SQLite3 Example
This is a PHP, PDO and SQLite3 example, which demonstrates the SQLite3 databse usage with PHP-PDO. The PHP / PDO / SQLite3 example code...
Read MoreLEMP on Fedora 16/15, CentOS/Red Hat (RHEL) 6.2/5.7 – (Linux, Nginx, MySQL, PHP)
LEMP (Linux, Nginx, MySQL, PHP) server is extremely powerful setup behind any website or web based service. This guide is collection of...
Read MorePHP Memory Usage Information Class
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...
Read MoreInstall Nginx/PHP-FPM on Fedora 16/15, CentOS/RHEL 6.2/5.7
I have once written Install nginx, PHP 5.3 and FastCGI on CentOS 5.5, Fedora 13, Red Hat RHEL 5.5/6 guide, but this guide is...
Read MoreInstall Zend Framework on Fedora 16/15, CentOS/Red Hat (RHEL) 6/5.7
This is quick guide, howto install Zend Framework (ZF) 1.11.10 on Fedora 16/15/14, CentOS 6/5.7 and Red Hat (RHEL) 6.1/6/5.7. This guide...
Read MorePHP: Remove Last Character from String – substr/substr_replace/rtrim
This is a very common PHP question, how to remove last character from string in PHP? So here are three ways how to delete last character...
Read MoreInstall WordPress 3.3.1 on Fedora 16/15, CentOS/RHEL 6.2/5.7
This is guide, howto install WordPress 3.3.1 with Nginx or Apache on Fedora 16/15/14/13, CentOS 6.2/6.1/6/5.7 and Red Hat (RHEL)...
Read MorePHP 1st, 2nd, 3rd, 4th, 5th, 6th – PHP Add Ordinal Number Suffix
This is simple function to add English ordinal number suffix after normal number. Function takes number as a parameter and returns number...
Read MoreLAMP on Fedora 16/15, CentOS/Red Hat (RHEL) 6.2/5.7 – (Linux, Apache, MySQL, PHP)
LAMP (Linux, Apache, MySQL, PHP) server is very powerful server setup behind any website or web based service. This guide is collection of...
Read MoreInstall Apache/PHP 5.3.10 on Fedora 16/15, CentOS/Red Hat (RHEL) 6.2/5.7
This guide shows howto install Apache HTTP Server (httpd) with PHP 5.3.10 and following modules on Fedora 16/15/14/13/12, CentOS...
Read MoreInstall Eclipse SDK 3.7.1 (Indigo) on Fedora 16/15, CentOS/RHEL 6.2/5.7
This is guide, howto install latest Eclipse SDK 3.7.1 (Indigo) on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 16,...
Read MorePHP mb_ucfirst Make a String’s First Character Uppercase-Multibyte (UTF-8) Function
PHP’s ucfirst function is very usefull when you want to change words first letters to uppercase and other letters to lowercase....
Read MoreInstall PHP MongoDB (mongo) Driver on Linux, Mac OS X, Windows, UNIX, BSD
PHP MongoDB (Mongo Database) Driver Installation on Linux, UNIX, BSD and Mac OS X MongoDB PHP driver is very simple install on Linux,...
Read MorePHP __DIR__, __FILE__, __FUNCTION__, __CLASS__, __METHOD__, __LINE__, __NAMESPACE__
PHP has large number of predefined constants. This HOWTO will present the seven most important, most practical and most useful PHP Magic...
Read MorePHP: Calculate Real Differences Between Two Dates or Timestamps
I was using simple function to calculate difference between two dates and timestamps until I noticed, it’s not working correctly in...
Read MorePHP CLI Colors – PHP Class Command Line Colors (bash)
PHP Command Line Interface (CLI) has not built-in coloring for script output, like example Perl language has...
Read MorePHP Timing Class – Class for Measure PHP Scripts Execution Time and PHP Web Page Load Time
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...
Read MorePHP stdClass to Array and Array to stdClass – stdClass Object
I think every PHP coders have come accross Arrays and stdClass Objects (belongs to PHP Predefined Classes). Sometimes it’s very...
Read Morenginx, PHP 5.3 and FastCGI on CentOS 5.5, Fedora 13, Red Hat RHEL 5.5/6
This is guide howto install nginx, PHP 5.3 and FastCGI webserver with MySQL and/or PostgreSQL and Memcache support on Fedora 12 and Fedora...
Read MoreBitLy (bit.ly) PHP Class – Shorten and Expand URLs (and Hashes) with BitLy API
BitLy (bit.ly) is a service which allows users to shorten, expand, share and track URLs (links). bit.ly can be accessed through bit.ly...
Read More