Trending Story

Creating a playlist for mplayer

We can create the mplayer playlist by following some simple commands :
$ find [/path/to/directory/] -name “*.mp3″ -print > myplaylist.txt
$ mplayer …

Add Ip’s to a Linux Server

1. Login to the server as root user.
2.
cd /etc/sysconfig/network-scripts
3. Check for existing network adapters with the command:
ls ifcfg-*
4. Copy …

Magic Methods

PHP reserves all function names starting with __ as magical.
__sleep :- This function is executed …

Changing fieldset tag line color

This can be done by using the style property of <fieldset> tag
Code Sample :
<fieldset style=”border-color: #ff0000;”>

MySQL Reconnect In PHP

Can use the inbuilt function  mysql_ping(), which will check whether or not the connection to the server …

Autoloading Classes In PHP

Many developers writing object-oriented applications create one PHP source file per-class definition. One of the biggest …