Category: PHP

PHP optimization, techniques and practises.

Manage and Tweak Dedicated Linux Hosting Web Server

To manage your linux based Dedicated Linux Web server having plesk as control panel. You can do following to tweak, enhance performance and to manage services: Linux Configuration As we do on our normal Linux based server, we list out…

Using PHP script to delete a multiple files

This is short php script to delete files file by file in a loop. To do deletion with PHP, use this little PHP script: $dir = “/directory/”; $dh = opendir($dir); $i = 0; while (($file = readdir($dh)) !== false) {…

TIPS

Check HTTP Connections The following may indicate if you’re getting slammed by one host. It should display all current connections to port 80 ordered by count netstat -anp |awk ‘/:80/ {print $5}’ | cut -d: -f1 | sort | uniq…

PHP Code Optimization

I have found the post by Reinhold Webber, which provide good techniques and methods for PHP performance and optimization. I have tried to add more explanation to the points posted by Reinhold Webber. If a method can be static, declare…