Archive for the ‘PHP’ Category

Upgrading PHP 5.1.* to 5.3.*

Are you facing issues in upgrading your PHP version? Here is an article on how to upgrade your current PHP 5.1 version to PHP 5.3 using remi and yum. Now you can assume yourself as a PHP 5.1 user. What we normally do is the following: # php -v PHP 5.1.6 (cli) (built: Mar 31 [...]

How to execute system commands from PHP/Apache

Executing system/shell commands from PHP/Apache can be useful in many situations. It can allow us to develop dynamic web applications that utilize powerful command-line utilities in order to do a particular task or function. It can also be useful in automating system administration tasks for someone who is more familiar with PHP. Since Apache does [...]

How to speed up your web application performance (Part 1)

From the recent survey’s, 80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc.And in the age of Web 2.0, most of the time will be spend upon increasing the performance of your website [...]

PHP Code Optimization – Performance. Readability. Scalability. – Tip 1

Hey there, This morning I wanted to give back some valuable information not only the PHP community, however, developers in general. Having stated that, today’s topic is PHP Code Optimization. First and foremost, a common problem I see in PHP coding is the usage/implementation of MySQL. For example, when inserting data into the database some [...]

Web Security

Security is a critical part of your Web applications. Web applications by definition allow users access to a central resource — the Web server — and through it, to others such as database servers. By understanding and implementing proper security measures, you guard your own resources as well as provide a secure environment in which [...]

Creating your own non existent magic methods in PHP 5

PHP 5 has many built in magic methods like __construct , __get , __set , __call , __toString etc. However, did you ever played with some unseen possibilities of such magic methods ? In this post, i would like to share some interesting possibilities about such a PHP magic method __call() From my past experience [...]